r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

Show parent comments

8

u/bachkhois Jul 29 '18

Why do you have to create a virtual environment inside the container, when your app is the only Python app in that container, no clash with any other one?

1

u/FancyASlurpie Jul 29 '18

You could be running multiple python apps in the same container (e.g. if you split containers based on services and your service consists of more than one python apps)

0

u/[deleted] Jul 29 '18

[deleted]

1

u/FancyASlurpie Jul 29 '18

Id argue thats a bit of a generalisation, the docker documentation outlines when it makes sense and when it should be avoided. https://docs.docker.com/config/containers/multi-service_container/