Introduction to Docker
In the previous section, Setting up notebook environments, you learned how to set up a virtual environment with various packages for DL using conda
and pip
commands. Furthermore, you know how to save an environment into a YAML file and recreate the same environment. However, projects based on virtual environments may not be sufficient when the environment needs to be replicated on multiple machines as there can be issues coming from non-obvious OS-level dependencies. In this situation, Docker would be a great solution. Using Docker, you can create a snapshot of your working environment, including the underlying version of your OS. Altogether, Docker allows you to separate your applications from your infrastructure so that you can deliver your software quickly. Installing Docker can be achieved by following the instructions at https://www.docker.com/get-started. In this book, we will use version 3.5.2.
In this section, we will introduce a Docker image, a representation...