So, now that you understand why we need Docker, and, at a high level, how to work with Docker, let’s turn our attention to what a Docker container and image actually are.
Mechanics of Docker
What is a Docker container?
Docker is based on Linux Containers (LXC), a containerization technology built into Linux. LXC itself relies on two Linux kernel mechanisms – control groups and namespaces. So, let's briefly examine each one in more detail.
Control groups
Control groups (cgroups) separate processes by groups, and attach one or more subsystems to each...