MENU
docker (cli)
This section explains the various commands you can use with the 'docker' utility.
run
docker run Run a command in a new container
image
docker search Search the Docker Hub for images docker pull Pull an image or a repository from a registry docker build Build an image from a Dockerfile docker builder Manage builds docker buildx Use extended build capabilities with BuildKit docker commit Create a new image from a container's changes docker rmi Remove one or more images docker images List images docker image Manage images docker history Show the history of an image docker save Save one or more images to a tar archive (streamed to STDOUT by default) docker load Load an image from a tar archive or STDIN docker tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE docker push Push an image or a repository to a registry docker manifest Manage Docker image manifests and manifest lists docker trust Manage trust on Docker images
container
docker container Manage containers docker rename Rename a container docker create Create a new container docker update Update configuration of one or more containers docker rm Remove one or more containers docker attach Attach local standard input, output, and error streams to a running container docker stop Stop one or more running containers docker kill Kill one or more running containers docker start Start one or more stopped containers docker restart Restart one or more containers docker ps List containers docker port List port mappings or a specific mapping for the container docker network Manage networks docker checkpoint Manage checkpoints
filesystem
docker cp Copy files/folders between a container and the local filesystem docker diff Inspect changes to files or directories on a container's filesystem docker exec Run a command in a running container docker export Export a container's filesystem as a tar archive docker import Import the contents from a tarball to create a filesystem image docker volume Manage volumes
information
docker info Display system-wide information docker logs Fetch the logs of a container docker stats Display a live stream of container(s) resource usage statistics docker inspect Return low-level information on Docker objects docker version Show the Docker version information
process
docker wait Block until one or more containers stop, then print their exit codes docker top Display the running processes of a container docker unpause Unpause all processes within one or more containers docker pause Pause all processes within one or more containers docker service Manage services
system
docker system Manage Docker docker plugin Manage plugins docker compose docker login Log in to a Docker registry docker logout Log out from a Docker registry
Docker Swarm
docker config Manage Docker configs docker service Manage services docker context Manage contexts docker swarm Manage Swarm docker node Manage Swarm nodes docker secret Manage Docker secrets docker stack Manage Docker stacks docker events Get real time events from the server