Docker Cheat Sheet
Docker Cheat Sheet
CheatSheet
Docker Architecture
Docker Client. .
DOCKER_HOST Registry (HUB).
Public / Private storage for
images e.g. Docker Hub
docker pull
Docker Daemon (dockerd)
docker build build
Dockerfile
docker run
Application Image
e.g. my_web_app
docker push
docker pull - Pulls an image from a registry to the Docker Host. docker run - Creates and starts a container from an image.
docker build - Builds an image from a Dockerfile. docker push - Pushes an image from the Docker Host to a registry.
Docker uses a client-server architecture, consisting of several main components that work
together to build, run, and manage containers. Here’s a breakdown of each part:
and Inspection
# Assign a custom name and run in
interactive mode