System Manage Docker template. Quickly scaffold services (Docker Enterprise) trust Manage trust on Docker images volume Manage volumes All commands below are called as options to the base docker command. Run docker command -help for more information on a particular command. Docker Management.Experimental in Docker Enterprise 3.0.
- Docker-compose up docker-compose down docker-compose up -d -build # daemon mode + build. You can use all the commands of docker. Python cheat sheet; Redmine.
- # Starts existing containers for a service. Docker-compose start # Stops running containers without removing them. Docker-compose stop # Pauses running containers of a service. Docker-compose pause # Unpauses paused containers of a service. Docker-compose unpause # Lists containers. Docker-compose ps # Builds, (re)creates, starts, and attaches to containers for a service. Docker-compose up # Stops containers and removes containers, networks, volumes, and images created by up. Docker-compose down.
Docker’s purpose is to build and manage compute images and to launch them in a container. So, the most useful commands do and expose this information.
Here’s a cheat sheet on the top Docker commands to know and use.
(This is part of our Docker Guide. Use the right-hand menu to navigate.)

Images and containers
The docker command line interface follows this pattern:
docker <COMMAND>
The docker images and container commands grant access to the images and containers. From here, you are permitted to do something with them, hence:
There are:
- is lists the resources.
- cp copies files/folders between the container and the local file system.
- create creates new container.
- diff inspects changes to files or directories in a running container.
- logs fetches the logs of a container.
- pause pauses all processes within one or more containers.
- rename renames a container.
- run runs a new command in a container.
- start starts one or more stopped containers.
- stop stops one or more running containers.
- stats displays a livestream of containers resource usage statistics.
- top displays the running processes of a container.
Docker Commands Cheat Sheet Pdf
View resources with ls
From the container ls command, the container id can be accessed (first column).
Control timing with start, stop, restart, prune
- start starts one or more stopped containers.
- stop stops one or more running containers.
- restart restarts one or more containers.
- prune (the best one!) removes all stopped containers.
Name a container
Docker Compose Syntax
View vital information: Inspect, stats, top
- stats displays a live stream of container(s) resource usage statistics
- top displays the running processes of a container:

- inspect displays detailed information on one or more containers. With inspect, a JSON is returned detailing the name and states and more of a container.
Additional resources
For more on this topic, there’s always the Docker documentation, the BMC DevOps Blog, and these articles:
