Package Docker

An application container engine

https://www.docker.com/

Docker is is a product for you to build, ship and run any application as a lightweight container.
Docker containers are both hardware-agnostic and platform-agnostic. This means they can run anywhere, from your laptop to the largest cloud compute instance and everything in between - and they don't require you to use a particular language, framework or packaging system. That makes them great building blocks for deploying and scaling web apps, databases, and backend services without depending on a particular stack or provider.

Version: 19.03.9

See also: docker-cli.

General Commands

docker Docker image and container command line interface
docker-attach Attach local standard input, output, and error streams to a running container
docker-build Build an image from a Dockerfile
docker-builder Manage builds
docker-builder-build Build an image from a Dockerfile
docker-builder-prune Remove build cache
docker-checkpoint Manage checkpoints
docker-checkpoint-create Create a checkpoint from a running container
docker-checkpoint-ls List checkpoints for a container
docker-checkpoint-rm Remove a checkpoint
docker-commit Create a new image from a container's changes
docker-config Manage Swarm 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-commit Create a new image from a container's changes
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 Execute a command in a running container
docker-container-export Export a container's filesystem as a tar archive
docker-container-inspect Display detailed information on one or more containers
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 Create and run a new container from an image
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 a context
docker-context-export Export a context to a tar archive FILE or a tar stream on STDOUT.
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-ls List contexts
docker-context-rm Remove one or more contexts
docker-context-update Update a context
docker-context-use Set the current docker context
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 Execute 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-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 Download an image from a registry
docker-image-push Upload an image 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-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 Authenticate to a registry
docker-logout Log out from a registry
docker-logs Fetch the logs of a container
docker-manifest Manage Docker image manifests and manifest lists
docker-manifest-annotate Add additional information to a local image manifest
docker-manifest-create Create a local manifest list for annotating and pushing to a registry
docker-manifest-inspect Display an image manifest, or manifest list
docker-manifest-push Push a manifest list to a repository
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-pause Pause all processes within one or more containers
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-port List port mappings or a specific mapping for the container
docker-ps List containers
docker-pull Download an image from a registry
docker-push Upload an image 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 Create and run a new container from an image
docker-save Save one or more images to a tar archive (streamed to STDOUT by default)
docker-search Search Docker Hub for images
docker-secret Manage Swarm 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 Swarm 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 Swarm 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-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-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-df Show docker disk usage
docker-system-events Get real time events from the server
docker-system-info Display system-wide information
docker-system-prune Remove unused data
docker-tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker-top Display the running processes of a container
docker-trust Manage trust on Docker images
docker-trust-inspect Return low-level information about keys and signatures
docker-trust-key Manage keys for signing Docker images
docker-trust-key-generate Generate and load a signing key-pair
docker-trust-key-load Load a private key file for signing
docker-trust-revoke Remove trust for an image
docker-trust-sign Sign an image
docker-trust-signer Manage entities who can sign Docker images
docker-trust-signer-add Add a signer
docker-trust-signer-remove Remove a signer
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-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 unused local volumes
docker-volume-rm Remove one or more volumes
docker-wait Block until one or more containers stop, then print their exit codes

File Formats

Dockerfile automate the steps of creating a Docker image
docker-config-json Default Docker configuration file

System Administration

dockerd Enable daemon mode