Architecture Overview Flashcards
The Docker daemon handles:
. Building
. Running
. Distributing
What type of architecture id Docker:
Client-server
Client talks to the:
Docker daemon
Both communicate using a REST API:
. UNIX sockets
. Network interface
Docker daemon:
dockerd
Docker daemon listens for Docker API requests and manages Docker objects:
. Images
. Containers
. Networks
. Volumes
Docker client:
docker
How users interact with Docker:
Docker client (docker)
Sends commands to dockerd:
Docker client (docker)
Docker registries:
. Stores Docker images
. Public registry such as DockerHub
. Let you run your own private registry
Docker objects:
. Images
. Containers
. Services
Images:
. Read-only template with instructions for creating a Docker container. . Image is based on another image . Create your own images . Use images published to a registry . Use a Dockerfile to build images
Containers:
. Runnable instance of an image
. Connect a container to networks
. Attach storage
. Create a new image based on its current state
. Isolated from other containers and the host machine
Services
. Scale containers across multiple Docker daemons
. Docker Swarm
. Define the desired state
. Service is load-balanced
Docker Swarm:
. Multiple Docker daemons (Master and Workers)
. The daemons all communicate using the Docker API
. Supported in Docker 1.12 and higher