Do you use Docker or Virtualenv for Python?

Rose Day - Apr 3 '18 - - Dev Community

Recently I wrote a post on using Docker for Jupyter and Python with the Intel Python2 distribition for data science. With this, I got some feedback to use virtualenv instead of Docker.

I started using Docker for the desire to learn how to make portable environments that can be moved from one machine to another with ease. With this, Docker comes with the benefit of adding other services into an application through the use of multiple containers. I am currently learning to use docker-compose to create an application with multiple containers. This allows for adding services such as PostgreSQL, MongoDB, Jupyter notebooks, or Apache Hadoop.

What do you typically use and why?

References

Cover image sourced from Docker Wallpapers

. . . . . . . . . . . . . . . . .