Use Docker containers to manage development dependencies


photograph of stacked shipping containersDocker containers can be a quick and effective way to keep project dependencies isolated.  They are faster and less resource intensive than virtual machines.  Docker provides the ability to share a local desktop directory with your Docker container using the –mount option.  Doing so allows your container access to your local source code and changes you make to it will immediately be available within the container.

In this blog post I explain how to set up a Docker container to run your source code, keeping its dependencies separated from anything installed on your desktop, and use your favorite desktop editor to work on your code.