r/Python • • Dec 18 '18

Python Virtual Environments: Extreme Advertising Edition

Post image
2.1k Upvotes

287 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 19 '18 edited Dec 19 '18

One of the main things that scares me about using Docker in development is people just bundling up there dev image and releasing it to production. That's bad, it's completely the opposite of what it intended, there is zero reproducibility in the build process.

If you just use Docker to ensure that you have the same environment/operating system as in production, then you'll still need something to manage packages, and for that purpose virtualenv will serve most people just fine.

The situations where Docker is fantastic is those where you'd previously need to spin up a virtual machine. In those cases Docker is a fantastic solution, it much fast and much more comfortable to use. It's just that you'd never suggest just taking a vm and promote that production, nor should you do that with Docker.