Loading tool…
cheatsheet
docker run -it ubuntu bashRun an interactive Ubuntu container
docker psList running containers
docker ps -aList all containers (running and stopped)
docker start my-containerStart a stopped container
docker stop my-containerStop a running container
docker restart my-containerRestart a container
docker rm my-containerRemove a container
docker kill my-containerForce stop a container
docker inspect my-containerDisplay detailed information about a container
docker logs my-containerFetch logs of a container
docker exec -it my-container bashExecute a command in a running container
docker imagesList all local Docker images
docker pull ubuntu:latestPull an image from Docker Hub
docker build -t my-app:1.0 .Build an image from a Dockerfile in current directory
docker rmi my-image:tagRemove an image
docker save -o my-image.tar my-image:tagSave an image to a tar archive
docker load -i my-image.tarLoad an image from a tar archive
docker volume lsList Docker volumes
docker volume create my-volumeCreate a new volume
docker network lsList Docker networks
docker network create my-networkCreate a new network
docker system pruneRemove stopped containers, unused networks, dangling images, and build cache
docker volume pruneRemove unused local volumes
Get new cheatsheets & tools in your inbox
No spam — just new releases, occasionally.