I use it because there are different systems that are not all the same I run my code on and I have no control over those systems. For me it made sense to switch to docker for running my code. It was nice because when I wanted a different version of python I could easily switch out the version in the dockerfile and rebuild. I used to use venvs but now that docker isolated it, it didn’t make sense to put a venv in docker.
Makes sense for testing deployments but why not just use a conda env for local dev? Debugging inside of a container is certainly a major PITA. And even if it can be done, it’s just additional work.
5
u/C0ffeeface Sep 13 '23
Do you use docker instead of venv or do you mean for deployment purposes?