Docker 101
Running a container in Docker is done by executing a series of commands which starts a group of processes, which the tool isolates from the rest of the system.
Docker can be used to run a single process, but in practice we want to run a full Linux distribution. Not to worry, everything needed to run a full Linux inside Docker is already available.
Every existing Linux distribution out there provides a base image, which lets you run the distribution in Docker. The typical way you use images is by creating a Dockerfile (https://docs.docker.com/engine/reference/builder/), where you point the base image you want to use, and add some extra commands to be run to create the container.
The following is a basic example of a Docker file: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access