All apps/Docker

Docker

docker

Builds, ships and runs applications in containers.

Runs as docker|macOS, Linux, Windows|docs.docker.com

Autocomplete

Fig spec, with what the manifest adds · 189 subcommands
Published once and never changed; check the digest before caching
sha256
5e6a39d3408352948795eeab8784ea46118d248d3ce151d8010a7db34e6f8de9
Size
347114 bytes
Subcommands189 subcommands
docker attach
Attach local standard input, output, and error streams to a running container,
docker build
Build an image from a Dockerfile
docker commit
Create a new image from a container's changes
docker cp
Copy files/folders between a container and the local filesystem
docker create
Create a new container
docker diff
Inspect changes to files or directories 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 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 info
Display system-wide information
docker inspect
Return low-level information on Docker objects
docker kill
Kill one or more running containers
docker load
Load an image from a tar archive or STDIN
docker login
Log in to a Docker registry
docker logout
Log out from a Docker registry
docker logs
Fetch the logs of a container
docker pause
Pause all processes within one or more containers
docker port
List port mappings or a specific mapping for the container
docker ps
List containers
docker pull
Pull an image or a repository from a registry
docker push
Push an image or a repository to a registry
docker rename
Rename a container
docker restart
Restart one or more containers
docker rm
Remove one or more containers
docker rmi
Remove one or more images
docker run
Run a command in a new container
docker save
Save one or more images to a tar archive (streamed to STDOUT by default)
docker search
Search the Docker Hub for images
docker sbom
View the packaged-based Software Bill Of Materials (SBOM) for an image
docker start
Start one or more stopped containers
docker stats
Display a live stream of container(s) resource usage statistics
docker stop
Stop one or more running containers
docker tag
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker top
Display the running processes of a container
docker unpause
Unpause all processes within one or more containers
docker update
Update configuration of one or more containers
docker version
Show the Docker version information
docker wait
Block until one or more containers stop, then print their exit codes
docker builder
Manage builds
docker builder build
Build an image from a Dockerfile
docker builder prune
Amount of disk space to keep for cache
docker config
Manage Docker configs
docker config create
Create a config from a file or STDIN
docker config inspect
Display detailed information on one or more configs
docker config ls
List configs
docker config rm
Remove one or more configs
docker container
Manage containers
docker container attach
Attach local standard input, output, and error streams to a running container,
docker container cp
Copy files/folders between a container and the local filesystem
docker container create
Create a new container
docker container diff
Inspect changes to files or directories on a container's filesystem
docker container exec
Run a command in a running container
docker container export
Export a container's filesystem as a tar archive
docker container inspect
Return low-level information on Docker objects
docker container kill
Kill one or more running containers
docker container logs
Fetch the logs of a container
docker container ls
List containers
docker container pause
Pause all processes within one or more containers
docker container port
List port mappings or a specific mapping for the container
docker container prune
Remove all stopped containers
docker container rename
Rename a container
docker container restart
Restart one or more containers
docker container rm
Remove one or more containers
docker container run
Run a command in a new container
docker container start
Start one or more stopped containers
docker container stats
Display a live stream of container(s) resource usage statistics
docker container stop
Stop one or more running containers
docker container top
Display the running processes of a container
docker container unpause
Unpause all processes within one or more containers
docker container update
Update configuration of one or more containers
docker container wait
Block until one or more containers stop, then print their exit codes
docker context
Manage contexts
docker context create
Create new context
docker context create aci
Create a context for Azure Container Instances
docker context create ecs
Create a context for Amazon ECS
docker context export
Export a context to a tar or kubeconfig file
docker context import
Import a context from a tar or zip file
docker context inspect
Display detailed information on one or more contexts
docker context list
List available contexts
docker context rm
Remove one or more contexts
docker context show
Print the current context
docker context update
Update a context
docker context use
Set the default context
docker image
Manage images
docker image build
Build an image from a Dockerfile
docker image history
Show the history of an image
docker image import
Import the contents from a tarball to create a filesystem image
docker image inspect
Display detailed information on one or more images
docker image load
Load an image from a tar archive or STDIN
docker image ls
List images
docker image prune
Remove unused images
docker image pull
Pull an image or a repository from a registry
docker image push
Push an image or a repository to a registry
docker image rm
Remove one or more images
docker image save
Save one or more images to a tar archive (streamed to STDOUT by default)
docker image tag
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker network
Manage networks
docker network connect
Connect a container to a network
docker network create
Create a network
docker network disconnect
Disconnect a container from a network
docker network inspect
Display detailed information on one or more networks
docker network ls
List networks
docker network prune
Remove all unused networks
docker network rm
Remove one or more networks
docker node
Manage Swarm nodes
docker node demote
Demote one or more nodes from manager in the swarm
docker node inspect
Display detailed information on one or more nodes
docker node ls
List nodes in the swarm
docker node promote
Promote one or more nodes to manager in the swarm
docker node ps
List tasks running on one or more nodes, defaults to current node
docker node rm
Remove one or more nodes from the swarm
docker node update
Update a node
docker buildx
Extended build capabilities with BuildKit
docker buildx bake
Bake is a high-level build command. Each specified target will run in parallel as part of the build
docker buildx build
The buildx build command starts a build using BuildKit. This command is similar to the UI of docker build command and takes the same flags and arguments
docker buildx create
Create a new builder instance
docker buildx du
Disk usage
docker buildx imagetools
Imagetools contains commands for working with manifest lists in the registry. These commands are useful for inspecting multi-platform build results
docker buildx imagetools create
Create a new image based on source images
docker buildx imagetools inspect
Inspect current builder instance
docker buildx inspect
Inspect current builder instance
docker buildx install
Install buildx as a ‘docker builder’ alias
docker buildx ls
List builder instances
docker buildx prune
Remove build cache
docker buildx rm
Remove a builder instance
docker buildx stop
Stop builder instance
docker buildx uninstall
Uninstall the ‘docker builder’ alias
docker buildx use
Set the current builder instance
docker buildx version
Show buildx version information
docker plugin
Manage plugins
docker plugin create
Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory
docker plugin disable
Disable a plugin
docker plugin enable
Enable a plugin
docker plugin inspect
Display detailed information on one or more plugins
docker plugin install
Install a plugin
docker plugin ls
List plugins
docker plugin push
Push a plugin to a registry
docker plugin rm
Remove one or more plugins
docker plugin set
Change settings for a plugin
docker plugin upgrade
Upgrade an existing plugin
docker secret
Manage Docker secrets
docker secret create
Create a secret from a file or STDIN as content
docker secret inspect
Display detailed information on one or more secrets
docker secret ls
List secrets
docker secret rm
Remove one or more secrets
docker service
Manage services
docker service create
Create a new service
docker service inspect
Display detailed information on one or more services
docker service logs
Fetch the logs of a service or task
docker service ls
List services
docker service ps
List the tasks of one or more services
docker service rm
Remove one or more services
docker service rollback
Revert changes to a service's configuration
docker service scale
Scale one or multiple replicated services
docker service update
Update a service
docker stack
Manage Docker stacks
docker stack deploy
Deploy a new stack or update an existing stack
docker stack ls
List stacks
docker stack ps
List the tasks in the stack
docker stack rm
Remove one or more stacks
docker stack services
List the services in the stack
docker swarm
Manage Swarm
docker swarm ca
Display and rotate the root CA
docker swarm init
Initialize a swarm
docker swarm join
Join a swarm as a node and/or manager
docker swarm join-token
Manage join tokens
docker swarm leave
Leave the swarm
docker swarm unlock
Unlock swarm
docker swarm unlock-key
Manage the unlock key
docker swarm update
Update the swarm
docker system
Manage Docker
docker system prune
Remove unused data
docker system df
Show docker disk usage
docker system events
Get real time events from the server
docker system info
Display system-wide information
docker trust
Manage trust on Docker images
docker trust inspect
Return low-level information about keys and signatures
docker trust revoke
Remove trust for an image
docker trust sign
Sign an image
docker volume
Manage volumes
docker volume create
Create a volume
docker volume inspect
Display detailed information on one or more volumes
docker volume ls
List volumes
docker volume prune
Remove all unused local volumes
docker volume rm
Remove one or more volumes
docker compose
Define and run multi-container applications with Docker