Is Docker an alternative for 'virtualenv' while develping Django project?
Yes docker can be used as an alternative.
virtualenv just sets a fresh python installation in path which can be used to install dependencies particular to your project without polluting global python installation and thus managing versioning as well.
Docker is a step further and gives a complete OS - linux image and OS level isolation. Not just one can have a isolated python installation but can also have other os specific dependencies installed like ffmpeg, lapack, arpack etc. A new developer can spin up a container from docker image having all dependencies (python and OS) installed.
A virtual environment is required when creating an application and now I am using 'virtualenv' for creating a virtual environment while developing my Django application. I heard of Docker about its virtual environment. Am I able to use Docker as an alternative to virtualenv?