Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker cheatsheet #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 138 additions & 1 deletion CheatSheets/docker-cheatsheet
Original file line number Diff line number Diff line change
@@ -1 +1,138 @@
Create a descriptive well formatted cheatsheet for all the things you should know about Docker
Docker
Automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization


Management Commands
docker dockerd
Launch the Docker daemon
docker info
Display system-wide information
docker inspect
Return low-level information on a container or image
docker version
Show the Docker version information
Image Commands
docker build
Build an image from a Dockerfile
docker commit
Create a new image from a container’s changes
docker history
Show the history of an image
docker images
List images
docker import
Import the contents from a tarball to create a filesystem image
docker load
Load an image from a tar archive or STDIN
docker rmi
Remove one or more images
docker save
Save images to a tar archive
docker tag
Tag an image into a repository
Container Commands
docker attach
Attach to a running container
docker cp
Copy files/folders from a container to a HOSTDIR or to STDOUT
docker create
Create a new container
docker diff
Inspect changes on a container’s filesystem
docker events
Get real time events from the server
docker exec
Run a command in a running container
docker export
Export a container’s filesystem as a tar archive
docker kill
Kill a running container
docker logs
Fetch the logs of a container
docker pause
Pause all processes within a container
docker port
List port mappings or a specific mapping for the container
docker ps
List containers
docker rename
Rename a container
docker restart
Restart a running container
docker rm
Remove one or more containers
docker run
Run a command in a new container
docker start
Start one or more stopped containers
docker stats
Display a live stream of container(s) resource usage statistics
docker stop
Stop a running container
docker top
Display the running processes of a container
docker unpause
Unpause all processes within a container
docker update
Update configuration of one or more containers
docker wait
Block until a container stops, then print its exit code
Hub and Registry Commands
docker login
Register or log in to a Docker registry
docker logout
Log out from a Docker registry
docker pull
Pull an image or a repository from a Docker registry
docker push
Push an image or a repository to a Docker registry
docker search
Search the Docker Hub for images
Network and Connectivity Commands
docker network connect
Connect a container to a network
docker network create
Create a new network
docker network disconnect
Disconnect a container from a network
docker network inspect
Display information about a network
docker network ls
Lists all the networks the Engine daemon knows about
docker network rm
Removes one or more networks
Shared Data Volume Commands
docker volumes create
Creates a new volume where containers can consume and store data
docker volumes inspect
Display information about a volume
docker volumes ls
Lists all the volumes Docker knows about
docker volumes rm
Remove one or more volumes
Swarm Node Commands
docker node promote
Promote a node that is pending a promotion to manager
docker node demote
Demotes an existing manager so that it is no longer a manager
docker node inspect
Inspect a node in the swarm
docker node update
Update attributes for a node
docker node ps
List tasks running on a node
docker node ls
List nodes in the swarm
docker node rm
Remove one or more nodes from the swarm
Swarm Swarm Commands
docker swarm init
Initialize a swarm
docker swarm join
Join a swarm as a manager node or worker node
docker swarm leave
Remove the current node from the swarm
docker swarm update
Update attributes of a swarm
docker swarm join-token
Display or rotate join tokens