The Docker container
Docker containers are the running instances of a Docker image. The containers use the kernel of the host operating system when running. Hence, they share the host kernel with other containers running on the same host. Docker runtime ensures that the container processes are allocated with their own isolated process space using kernel features, such as cgroups, and the kernel namespace of the operating system. In addition to resource fencing, the containers will get their own filesystem and network configurations as well.
The containers, when instantiated, can have a specific resource allocation, such as memory and CPU. Containers, when initiated from the same image, can have a different resource allocation. The Docker ...
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