Cheatography
https://cheatography.com
This chear sheet is for Docker
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Essential Docker Commands Cheat Sheet
Docker Image Management
docker build: This command is used to build a Docker image from a Docker file.
docker pull: Downloads a Docker image from a registry.
docker push: Uploads a Docker image to a registry.
docker rmi: Removes a Docker image. |
|
Essential Docker Commands Cheat Sheet
Docker Image Management
docker tag: Tags a Docker image with a name.
docker commit: Creates a new Docker image from changes made to a container.
docker save: Saves a Docker image as a tar archive.
docker load: Loads a Docker image from a tar archive. |
|
Essential Docker Commands Cheat Sheet
Docker Container Management
docker run: Creates a new Docker container from an image.
docker ps: Lists all running Docker containers.
docker stop: Stops a running Docker container.
docker start: Starts a stopped Docker container. |
|
Essential Docker Commands Cheat Sheet
Docker Container Management
docker exec: Executes a command in a running Docker container.
docker logs: Displays the logs of a running Docker container.
docker inspect: Displays detailed information about a Docker container or image.
docker pause: Pauses a running Docker container. |
|
Essential Docker Commands Cheat Sheet
Docker Container Management
docker unpause: Unpauses a paused Docker container.
docker wait: Waits for a Docker container to exit and displays its exit code.
docker restart: Restarts a running Docker container.
docker kill: Sends a signal to a Docker container to stop it immediately. |
|
Essential Docker Commands Cheat Sheet
Docker Container Management
docker update: Updates a Docker container's resource limits and configuration.
docker attach: Attaches to a running Docker container's console.
docker port: Displays the public-facing port of a Docker container.
docker diff: Displays the changes made to a Docker container's file system. |
|
Essential Docker Commands Cheat Sheet
Docker Container Management
docker stats: Displays real-time CPU, memory, and network usage of a Docker container.
docker top: Displays the running processes inside a Docker container.
docker run: Creates a new Docker container from an image. |
|
Essential Docker Commands Cheat Sheet
Docker Network Management
docker network: Manages Docker networks. |
|
Essential Docker Commands Cheat Sheet
Docker Volume Management
docker volume: Manages Docker volumes. |
|
Essential Docker Commands Cheat Sheet
Docker Registry Management
docker login: Logs in to a Docker registry.
docker logout: Logs out of a Docker registry. |
|
Essential Docker Commands Cheat Sheet
Docker Swarm Management
docker swarm: Manages Docker Swarm clusters.
docker node: Manages Docker Swarm nodes.
docker service: Manages Docker Swarm services. |
|
Essential Docker Commands Cheat Sheet
Docker Compose Management
docker-compose: Manages Docker Compose applications. |
|
Essential Docker Commands Cheat Sheet
Docker System Management
docker system: Manages Docker's disk usage and cleanup unused resources.
docker info: Displays system-wide information about Docker. |
|
Essential Docker Commands Cheat Sheet
Miscellaneous Docker Commands
docker events: Displays real-time events from Docker.
docker cp: Copies files or directories between a Docker container and the host. |
|