- x +
Usage:docker [OPTIONS] COMMANDA self-sufficient runtime for containers Options:--config stringLocation of client config files (default "C:\\Users\\mixol\\.docker")-c, --context stringName of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")-D, --debugEnable debug mode-H, --host listDaemon socket(s) to connect to-l, --log-level stringSet the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")--tlsUse TLS; implied by --tlsverify--tlscacert stringTrust certs signed only by this CA (default "C:\\Users\\mixol\\.docker\\ca.pem")--tlscert stringPath to TLS certificate file (default "C:\\Users\\mixol\\.docker\\cert.pem")--tlskey stringPath to TLS key file (default "C:\\Users\\mixol\\.docker\\key.pem")--tlsverifyUse TLS and verify the remote-v, --versionPrint version information and quit Management Commands: builder Manage builds buildx* Docker Buildx (Docker Inc., v0.8.1) compose* Docker Compose (Docker Inc., v2.3.3) config Manage Docker configs container Manage containers context Manage contexts image Manage images manifest Manage Docker image manifests and manifest lists network Manage networks node Manage Swarm nodes plugin Manage plugins scan* Docker Scan (Docker Inc., v0.17.0) secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
Usage:docker attach [OPTIONS] CONTAINERAttach local standard input, output, and error streams to a running container Options:--detach-keys stringOverride the key sequence for detaching a container--no-stdinDo not attach STDIN--sig-proxyProxy all received signals to the process (default true)
Usage:docker build [OPTIONS] PATH | URL | -Build an image from a Dockerfile Options:--add-host listAdd a custom host-to-IP mapping (host:ip)--build-arg listSet build-time variables--cache-from stringsImages to consider as cache sources--cgroup-parent stringOptional parent cgroup for the container--compressCompress the build context using gzip--cpu-period intLimit the CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit the CPU CFS (Completely Fair Scheduler) quota-c, --cpu-shares intCPU shares (relative weight)--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--disable-content-trustSkip image verification (default true)-f, --file stringName of the Dockerfile (Default is 'PATH/Dockerfile')--force-rmAlways remove intermediate containers--iidfile stringWrite the image ID to the file--isolation stringContainer isolation technology--label listSet metadata for an image-m, --memory bytesMemory limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--network stringSet the networking mode for the RUN instructions during build (default "default")--no-cacheDo not use cache when building the image--pullAlways attempt to pull a newer version of the image-q, --quietSuppress the build output and print image ID on success--rmRemove intermediate containers after a successful build (default true)--security-opt stringsSecurity options--shm-size bytesSize of /dev/shm--squashSquash newly built layers into a single new layer-t, --tag listName and optionally a tag in the 'name:tag' format--target stringSet the target build stage to build.--ulimit ulimitUlimit options (default [])
Usage:docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]Create a new image from a container's changes Options:-a, --author stringAuthor (e.g., "John Hannibal Smith") -c, --change listApply Dockerfile instruction to the created image-m, --message stringCommit message-p, --pausePause container during commit (default true)
Usage:docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATHCopy files/folders between a container and the local filesystem Use '-' as the source to read a tar archive from stdin and extract it to a directory destination in a container. Use '-' as the destination to stream a tar archive of a container source to stdout. Options:-a, --archiveArchive mode (copy all uid/gid information)-L, --follow-linkAlways follow symbol link in SRC_PATH
Usage:docker create [OPTIONS] IMAGE [COMMAND] [ARG...]Create a new container Options:--add-host listAdd a custom host-to-IP mapping (host:ip)-a, --attach listAttach to STDIN, STDOUT or STDERR--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--blkio-weight-device listBlock IO weight (relative device weight) (default [])--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--cgroup-parent stringOptional parent cgroup for the container--cgroupns stringCgroup namespace to use (host|private) 'host': Run the container in the Docker host's cgroup namespace 'private': Run the container in its own private cgroup namespace '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)--cidfile stringWrite the container ID to the file--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit CPU real-time period in microseconds--cpu-rt-runtime intLimit CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--device listAdd a host device to the container--device-cgroup-rule listAdd a rule to the cgroup allowed devices list--device-read-bps listLimit read rate (bytes per second) from a device (default [])--device-read-iops listLimit read rate (IO per second) from a device (default [])--device-write-bps listLimit write rate (bytes per second) to a device (default [])--device-write-iops listLimit write rate (IO per second) to a device (default [])--disable-content-trustSkip image verification (default true)--dns listSet custom DNS servers--dns-option listSet DNS options--dns-search listSet custom DNS search domains--domainname stringContainer NIS domain name--entrypoint stringOverwrite the default ENTRYPOINT of the image-e, --env listSet environment variables--env-file listRead in a file of environment variables--expose listExpose a port or a range of ports--gpusgpu-request GPU devices to add to the container ('all' to pass all GPUs)--group-add listAdd additional groups to join--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h) (default 0s)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h) (default 0s)--helpPrint usage-h, --hostname stringContainer host name--initRun an init inside the container that forwards signals and reaps processes-i, --interactiveKeep STDIN open even if not attached--ip stringIPv4 address (e.g., 172.30.100.104)--ip6 stringIPv6 address (e.g., 2001:db8::33)--ipc stringIPC mode to use--isolation stringContainer isolation technology--kernel-memory bytesKernel memory limit-l, --label listSet meta data on a container--label-file listRead in a line delimited file of labels--link listAdd link to another container--link-local-ip listContainer IPv4/IPv6 link-local addresses--log-driver stringLogging driver for the container--log-opt listLog driver options--mac-address stringContainer MAC address (e.g., 92:d0:c6:0a:29:33)-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--memory-swappiness intTune container memory swappiness (0 to 100) (default -1)--mount mountAttach a filesystem mount to the container--name stringAssign a name to the container--network networkConnect a container to a network--network-alias listAdd network-scoped alias for the container--no-healthcheckDisable any container-specified HEALTHCHECK--oom-kill-disableDisable OOM Killer--oom-score-adj intTune host's OOM preferences (-1000 to 1000)--pid stringPID namespace to use--pids-limit intTune container pids limit (set -1 for unlimited)--platform stringSet platform if server is multi-platform capable--privilegedGive extended privileges to this container-p, --publish listPublish a container's port(s) to the host-P, --publish-allPublish all exposed ports to random ports--pull stringPull image before creating ("always"|"missing"|"never") (default "missing")--read-onlyMount the container's root filesystem as read only--restart stringRestart policy to apply when a container exits (default "no")--rmAutomatically remove the container when it exits--runtime stringRuntime to use for this container--security-opt listSecurity Options--shm-size bytesSize of /dev/shm--stop-signal stringSignal to stop a container (default "15")--stop-timeout intTimeout (in seconds) to stop a container--storage-opt listStorage driver options for the container--sysctl mapSysctl options (default map[])--tmpfs listMount a tmpfs directory-t, --ttyAllocate a pseudo-TTY--ulimit ulimitUlimit options (default [])-u, --user stringUsername or UID (format:[: ]) --userns stringUser namespace to use--uts stringUTS namespace to use-v, --volume listBind mount a volume--volume-driver stringOptional volume driver for the container--volumes-from listMount volumes from the specified container(s)-w, --workdir stringWorking directory inside the container
Usage: docker diff CONTAINER
Inspect changes to files or directories on a container's filesystem
Usage:docker events [OPTIONS]Get real time events from the server Options:-f, --filter filterFilter output based on conditions provided--format stringFormat the output using the given Go template--since stringShow all events created since timestamp--until stringStream events until this timestamp
Usage:docker exec [OPTIONS] CONTAINER COMMAND [ARG...]Run a command in a running container Options:-d, --detachDetached mode: run command in the background--detach-keys stringOverride the key sequence for detaching a container-e, --env listSet environment variables--env-file listRead in a file of environment variables-i, --interactiveKeep STDIN open even if not attached--privilegedGive extended privileges to the command-t, --ttyAllocate a pseudo-TTY-u, --user stringUsername or UID (format:[: ]) -w, --workdir stringWorking directory inside the container
Usage:docker export [OPTIONS] CONTAINERExport a container's filesystem as a tar archive Options:-o, --output stringWrite to a file, instead of STDOUT
Usage:docker history [OPTIONS] IMAGEShow the history of an image Options:--format stringPretty-print images using a Go template-H, --humanPrint sizes and dates in human readable format (default true)--no-truncDon't truncate output-q, --quietOnly show image IDs
Usage:docker images [OPTIONS] [REPOSITORY[:TAG]]List images Options:-a, --allShow all images (default hides intermediate images)--digestsShow digests-f, --filter filterFilter output based on conditions provided--format stringPretty-print images using a Go template--no-truncDon't truncate output-q, --quietOnly show image IDs
Usage:docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]Import the contents from a tarball to create a filesystem image Options:-c, --change listApply Dockerfile instruction to the created image-m, --message stringSet commit message for imported image--platform stringSet platform if server is multi-platform capable
Usage:docker info [OPTIONS]Display system-wide information Options:-f, --format stringFormat the output using the given Go template
Usage:docker inspect [OPTIONS] NAME|ID [NAME|ID...]Return low-level information on Docker objects Options:-f, --format stringFormat the output using the given Go template-s, --sizeDisplay total file sizes if the type is container--type stringReturn JSON for specified type
Usage:docker kill [OPTIONS] CONTAINER [CONTAINER...]Kill one or more running containers Options:-s, --signal stringSignal to send to the container (default "KILL")
Usage:docker load [OPTIONS]Load an image from a tar archive or STDIN Options:-i, --input stringRead from tar archive file, instead of STDIN-q, --quietSuppress the load output
Log in to a Docker registry or cloud backend. If no registry server is specified, the default is defined by the daemon. Usage:docker login [OPTIONS] [SERVER] [flags]docker login [command]Available Commands: azure Log in to azure Flags:-h, --helpHelp for login-p, --password stringpassword--password-stdinTake the password from stdin-u, --username stringusername Use "docker login [command] --help" for more information about a command.
Log out from a Docker registry or cloud backend. If no server is specified, the default is defined by the daemon. Usage:docker logout [SERVER] [flags]docker logout [command]Available Commands: azure Logout from Azure Flags:-h, --helpHelp for logout Use "docker logout [command] --help" for more information about a command.
Usage:docker logs [OPTIONS] CONTAINERFetch the logs of a container Options:--detailsShow extra details provided to logs-f, --followFollow log output--since stringShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)-n, --tail stringNumber of lines to show from the end of the logs (default "all")-t, --timestampsShow timestamps--until stringShow logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
Usage: docker pause CONTAINER [CONTAINER...]
Pause all processes within one or more containers
Usage: docker port CONTAINER [PRIVATE_PORT[/PROTO]]
List port mappings or a specific mapping for the container
Usage:docker ps [OPTIONS]List containers Options:-a, --allShow all containers (default shows just running)-f, --filter filterFilter output based on conditions provided--format stringPretty-print containers using a Go template-n, --last intShow n last created containers (includes all states) (default -1)-l, --latestShow the latest created container (includes all states)--no-truncDon't truncate output-q, --quietOnly display container IDs-s, --sizeDisplay total file sizes
Usage:docker pull [OPTIONS] NAME[:TAG|@DIGEST]Pull an image or a repository from a registry Options:-a, --all-tagsDownload all tagged images in the repository--disable-content-trustSkip image verification (default true)--platform stringSet platform if server is multi-platform capable-q, --quietSuppress verbose output
Usage:docker push [OPTIONS] NAME[:TAG]Push an image or a repository to a registry Options:-a, --all-tagsPush all tagged images in the repository--disable-content-trustSkip image signing (default true)-q, --quietSuppress verbose output
Usage: docker rename CONTAINER NEW_NAME
Rename a container
Usage:docker restart [OPTIONS] CONTAINER [CONTAINER...]Restart one or more containers Options:-t, --time intSeconds to wait for stop before killing the container (default 10)
Usage:docker rm [OPTIONS] CONTAINER [CONTAINER...]Remove one or more containers Options:-f, --forceForce the removal of a running container (uses SIGKILL)-l, --linkRemove the specified link-v, --volumesRemove anonymous volumes associated with the container
Usage:docker rmi [OPTIONS] IMAGE [IMAGE...]Remove one or more images Options:-f, --forceForce removal of the image--no-pruneDo not delete untagged parents
Usage:docker run [OPTIONS] IMAGE [COMMAND] [ARG...]Run a command in a new container Options:--add-host listAdd a custom host-to-IP mapping (host:ip)-a, --attach listAttach to STDIN, STDOUT or STDERR--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--blkio-weight-device listBlock IO weight (relative device weight) (default [])--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--cgroup-parent stringOptional parent cgroup for the container--cgroupns stringCgroup namespace to use (host|private) 'host': Run the container in the Docker host's cgroup namespace 'private': Run the container in its own private cgroup namespace '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)--cidfile stringWrite the container ID to the file--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit CPU real-time period in microseconds--cpu-rt-runtime intLimit CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)-d, --detachRun container in background and print container ID--detach-keys stringOverride the key sequence for detaching a container--device listAdd a host device to the container--device-cgroup-rule listAdd a rule to the cgroup allowed devices list--device-read-bps listLimit read rate (bytes per second) from a device (default [])--device-read-iops listLimit read rate (IO per second) from a device (default [])--device-write-bps listLimit write rate (bytes per second) to a device (default [])--device-write-iops listLimit write rate (IO per second) to a device (default [])--disable-content-trustSkip image verification (default true)--dns listSet custom DNS servers--dns-option listSet DNS options--dns-search listSet custom DNS search domains--domainname stringContainer NIS domain name--entrypoint stringOverwrite the default ENTRYPOINT of the image-e, --env listSet environment variables--env-file listRead in a file of environment variables--expose listExpose a port or a range of ports--gpusgpu-request GPU devices to add to the container ('all' to pass all GPUs)--group-add listAdd additional groups to join--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h) (default 0s)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h) (default 0s)--helpPrint usage-h, --hostname stringContainer host name--initRun an init inside the container that forwards signals and reaps processes-i, --interactiveKeep STDIN open even if not attached--ip stringIPv4 address (e.g., 172.30.100.104)--ip6 stringIPv6 address (e.g., 2001:db8::33)--ipc stringIPC mode to use--isolation stringContainer isolation technology--kernel-memory bytesKernel memory limit-l, --label listSet meta data on a container--label-file listRead in a line delimited file of labels--link listAdd link to another container--link-local-ip listContainer IPv4/IPv6 link-local addresses--log-driver stringLogging driver for the container--log-opt listLog driver options--mac-address stringContainer MAC address (e.g., 92:d0:c6:0a:29:33)-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--memory-swappiness intTune container memory swappiness (0 to 100) (default -1)--mount mountAttach a filesystem mount to the container--name stringAssign a name to the container--network networkConnect a container to a network--network-alias listAdd network-scoped alias for the container--no-healthcheckDisable any container-specified HEALTHCHECK--oom-kill-disableDisable OOM Killer--oom-score-adj intTune host's OOM preferences (-1000 to 1000)--pid stringPID namespace to use--pids-limit intTune container pids limit (set -1 for unlimited)--platform stringSet platform if server is multi-platform capable--privilegedGive extended privileges to this container-p, --publish listPublish a container's port(s) to the host-P, --publish-allPublish all exposed ports to random ports--pull stringPull image before running ("always"|"missing"|"never") (default "missing")--read-onlyMount the container's root filesystem as read only--restart stringRestart policy to apply when a container exits (default "no")--rmAutomatically remove the container when it exits--runtime stringRuntime to use for this container--security-opt listSecurity Options--shm-size bytesSize of /dev/shm--sig-proxyProxy received signals to the process (default true)--stop-signal stringSignal to stop a container (default "15")--stop-timeout intTimeout (in seconds) to stop a container--storage-opt listStorage driver options for the container--sysctl mapSysctl options (default map[])--tmpfs listMount a tmpfs directory-t, --ttyAllocate a pseudo-TTY--ulimit ulimitUlimit options (default [])-u, --user stringUsername or UID (format:[: ]) --userns stringUser namespace to use--uts stringUTS namespace to use-v, --volume listBind mount a volume--volume-driver stringOptional volume driver for the container--volumes-from listMount volumes from the specified container(s)-w, --workdir stringWorking directory inside the container
Usage:docker save [OPTIONS] IMAGE [IMAGE...]Save one or more images to a tar archive (streamed to STDOUT by default) Options:-o, --output stringWrite to a file, instead of STDOUT
Usage:docker search [OPTIONS] TERMSearch the Docker Hub for images Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print search using a Go template--limit intMax number of search results (default 25)--no-truncDon't truncate output
Usage:docker start [OPTIONS] CONTAINER [CONTAINER...]Start one or more stopped containers Options:-a, --attachAttach STDOUT/STDERR and forward signals--detach-keys stringOverride the key sequence for detaching a container-i, --interactiveAttach container's STDIN
Usage:docker stats [OPTIONS] [CONTAINER...]Display a live stream of container(s) resource usage statistics Options:-a, --allShow all containers (default shows just running)--format stringPretty-print images using a Go template--no-streamDisable streaming stats and only pull the first result--no-truncDo not truncate output
Usage:docker stop [OPTIONS] CONTAINER [CONTAINER...]Stop one or more running containers Options:-t, --time intSeconds to wait for stop before killing it (default 10)
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Usage: docker top CONTAINER [ps OPTIONS]
Display the running processes of a container
Usage: docker unpause CONTAINER [CONTAINER...]
Unpause all processes within one or more containers
Usage:docker update [OPTIONS] CONTAINER [CONTAINER...]Update configuration of one or more containers Options:--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit the CPU real-time period in microseconds--cpu-rt-runtime intLimit the CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--kernel-memory bytesKernel memory limit-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--pids-limit intTune container pids limit (set -1 for unlimited)--restart stringRestart policy to apply when a container exits
Show the Docker version information Usage:docker version [flags]Flags:-f, --format stringFormat the output. Values: [pretty | json]. (Default: pretty)-h, --helpHelp for version--kubeconfig stringKubernetes config file
Usage: docker wait CONTAINER [CONTAINER...]
Block until one or more containers stop, then print their exit codes
Usage: docker builder COMMAND
Manage builds
Commands:
build Build an image from a Dockerfile
prune Remove build cache
Run 'docker builder COMMAND --help' for more information on a command.
Usage:docker builder build [OPTIONS] PATH | URL | -Build an image from a Dockerfile Options:--add-host listAdd a custom host-to-IP mapping (host:ip)--build-arg listSet build-time variables--cache-from stringsImages to consider as cache sources--cgroup-parent stringOptional parent cgroup for the container--compressCompress the build context using gzip--cpu-period intLimit the CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit the CPU CFS (Completely Fair Scheduler) quota-c, --cpu-shares intCPU shares (relative weight)--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--disable-content-trustSkip image verification (default true)-f, --file stringName of the Dockerfile (Default is 'PATH/Dockerfile')--force-rmAlways remove intermediate containers--iidfile stringWrite the image ID to the file--isolation stringContainer isolation technology--label listSet metadata for an image-m, --memory bytesMemory limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--network stringSet the networking mode for the RUN instructions during build (default "default")--no-cacheDo not use cache when building the image--pullAlways attempt to pull a newer version of the image-q, --quietSuppress the build output and print image ID on success--rmRemove intermediate containers after a successful build (default true)--security-opt stringsSecurity options--shm-size bytesSize of /dev/shm--squashSquash newly built layers into a single new layer-t, --tag listName and optionally a tag in the 'name:tag' format--target stringSet the target build stage to build.--ulimit ulimitUlimit options (default [])
Usage:docker builder pruneRemove build cache Options:-a, --allRemove all unused build cache, not just dangling ones--filter filterProvide filter values (e.g. 'until=24h')-f, --forceDo not prompt for confirmation--keep-storage bytesAmount of disk space to keep for cache
Usage:docker buildx [OPTIONS] COMMANDExtended build capabilities with BuildKit Options:--builder stringOverride the configured builder instance Management Commands: imagetools Commands to work on images in registry Commands: bake Build from a file build Start a build create Create a new builder instance du Disk usage inspect Inspect current builder instance ls List builder instances prune Remove build cache rm Remove a builder instance stop Stop builder instance use Set the current builder instance version Show buildx version information Run 'docker buildx COMMAND --help' for more information on a command.
Usage:docker buildx bake [OPTIONS] [TARGET...]Build from a file Aliases: bake, f Options:--builder stringOverride the configured builder instance-f, --file stringArrayBuild definition file--loadShorthand for "--set=*.output=type=docker"--metadata-file stringWrite build result metadata to the file--no-cacheDo not use cache when building the image--progress stringSet type of progress output ("auto", "plain", "tty"). Use plain to show container output (default "auto")--pullAlways attempt to pull all referenced images--pushShorthand for "--set=*.output=type=registry"--set stringArrayOverride target value (e.g., "targetpattern.key=value")
Usage:docker buildx build [OPTIONS] PATH | URL | -Start a build Aliases: build, b Options:--add-host stringsAdd a custom host-to-IP mapping (format: "host:ip")--allow stringsAllow extra privileged entitlement (e.g., "network.host", "security.insecure")--build-arg stringArraySet build-time variables--build-context stringArrayAdditional build contexts (e.g., name=path)--builder stringOverride the configured builder instance--cache-from stringArrayExternal cache sources (e.g., "user/app:cache", "type=local,src=path/to/dir")--cache-to stringArrayCache export destinations (e.g., "user/app:cache", "type=local,dest=path/to/dir")--cgroup-parent stringOptional parent cgroup for the container-f, --file stringName of the Dockerfile (default: "PATH/Dockerfile")--iidfile stringWrite the image ID to the file--label stringArraySet metadata for an image--loadShorthand for "--output=type=docker"--metadata-file stringWrite build result metadata to the file--network stringSet the networking mode for the "RUN" instructions during build (default "default")--no-cacheDo not use cache when building the image--no-cache-filter stringArrayDo not cache specified stages-o, --output stringArrayOutput destination (format: "type=local,dest=path")--platform stringArraySet target platform for build--progress stringSet type of progress output ("auto", "plain", "tty"). Use plain to show container output (default "auto")--pullAlways attempt to pull all referenced images--pushShorthand for "--output=type=registry"-q, --quietSuppress the build output and print image ID on success--secret stringArraySecret to expose to the build (format: "id=mysecret[,src=/local/secret]")--shm-size bytesSize of "/dev/shm"--ssh stringArraySSH agent socket or keys to expose to the build (format: "default|[= | [, ]]") -t, --tag stringArrayName and optionally a tag (format: "name:tag")--target stringSet the target build stage to build--ulimit ulimitUlimit options (default [])
Usage:docker buildx create [OPTIONS] [CONTEXT|ENDPOINT]Create a new builder instance Options:--appendAppend a node to builder instead of changing it--bootstrapBoot builder after creation--buildkitd-flags stringFlags for buildkitd daemon--config stringBuildKit config file--driver stringDriver to use (available: "docker", "docker-container", "kubernetes")--driver-opt stringArrayOptions for the driver--leaveRemove a node from builder instead of changing it--name stringBuilder instance name--node stringCreate/modify node with given name--platform stringArrayFixed platforms for current node--useSet the current builder instance
Usage:docker buildx duDisk usage Options:--builder stringOverride the configured builder instance--filter filterProvide filter values--verboseProvide a more verbose output
Usage:docker buildx inspect [NAME]Inspect current builder instance Options:--bootstrapEnsure builder has booted before inspecting--builder stringOverride the configured builder instance
Usage: docker buildx ls
List builder instances
Usage:docker buildx pruneRemove build cache Options:-a, --allRemove all unused images, not just dangling ones--builder stringOverride the configured builder instance--filter filterProvide filter values (e.g., "until=24h")-f, --forceDo not prompt for confirmation--keep-storage bytesAmount of disk space to keep for cache--verboseProvide a more verbose output
Usage:docker buildx rm [NAME]Remove a builder instance Options:--all-inactiveRemove all inactive builders--builder stringOverride the configured builder instance-f, --forceDo not prompt for confirmation--keep-daemonKeep the buildkitd daemon running--keep-stateKeep BuildKit state
Usage:docker buildx stop [NAME]Stop builder instance Options:--builder stringOverride the configured builder instance
Usage:docker buildx use [OPTIONS] NAMESet the current builder instance Options:--builder stringOverride the configured builder instance--defaultSet builder as default for current context--globalBuilder persists context changes
Usage: docker buildx version
Show buildx version information
Usage:docker compose [OPTIONS] COMMANDDocker Compose Options:--ansi stringControl when to print ANSI control characters ("never"|"always"|"auto") (default "auto")--compatibilityRun compose in backward compatibility mode--env-file stringSpecify an alternate environment file.-f, --file stringArrayCompose configuration files--profile stringArraySpecify a profile to enable--project-directory stringSpecify an alternate working directory (default: the path of the Compose file)-p, --project-name stringProject name Commands: build Build or rebuild services convert Converts the compose file to platform's canonical format cp Copy files/folders between a service container and the local filesystem create Creates containers for a service. down Stop and remove containers, networks events Receive real time events from containers. exec Execute a command in a running container. images List images used by the created containers kill Force stop service containers. logs View output from containers ls List running compose projects pause Pause services port Print the public port for a port binding. ps List containers pull Pull service images push Push service images restart Restart containers rm Removes stopped service containers run Run a one-off command on a service. start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker Compose version information Run 'docker compose COMMAND --help' for more information on a command.
Usage:docker compose build [SERVICE...]Build or rebuild services Options:--build-arg stringArraySet build-time variables for services.--no-cacheDo not use cache when building the image--progress stringSet type of progress output (auto, tty, plain, quiet) (default "auto")--pullAlways attempt to pull a newer version of the image.-q, --quietDon't print anything to STDOUT
Usage:docker compose convert SERVICESConverts the compose file to platform's canonical format Aliases: convert, config Options:--format stringFormat the output. Values: [yaml | json] (default "yaml")--hash stringPrint the service config hash, one per line.--imagesPrint the image names, one per line.--no-interpolateDon't interpolate environment variables.--no-normalizeDon't normalize compose model.-o, --output stringSave to file (default to stdout)--profilesPrint the profile names, one per line.-q, --quietOnly validate the configuration, don't print anything.--resolve-image-digestsPin image tags to digests.--servicesPrint the service names, one per line.--volumesPrint the volume names, one per line.
Usage:docker compose cp [OPTIONS] SERVICE:SRC_PATH DEST_PATH|-docker compose cp [OPTIONS] SRC_PATH|- SERVICE:DEST_PATHCopy files/folders between a service container and the local filesystem Options:--allCopy to all the containers of the service.-a, --archiveArchive mode (copy all uid/gid information)-L, --follow-linkAlways follow symbol link in SRC_PATH--index intIndex of the container if there are multiple instances of a service [default: 1]. (default 1)
Usage:docker compose create [SERVICE...]Creates containers for a service. Options:--buildBuild images before starting containers.--force-recreateRecreate containers even if their configuration and image haven't changed.--no-buildDon't build an image, even if it's missing.--no-recreateIf containers already exist, don't recreate them. Incompatible with --force-recreate.
Usage:docker compose downStop and remove containers, networks Options:--remove-orphansRemove containers for services not defined in the Compose file.--rmi stringRemove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")-t, --timeout intSpecify a shutdown timeout in seconds (default 10)-v, --volumes volumesRemove named volumes declared in the volumes section of the Compose file and anonymous volumes attached to containers.
Usage:docker compose events [options] [--] [SERVICE...]Receive real time events from containers. Options:--jsonOutput events as a stream of json objects
Usage:docker compose exec [options] [-e KEY=VAL...] [--] SERVICE COMMAND [ARGS...]Execute a command in a running container. Options:-d, --detachDetached mode: Run command in the background.-e, --env stringArraySet environment variables--index intindex of the container if there are multiple instances of a service [default: 1]. (default 1)-T, --no-TTY dockercompose exec Disable pseudo-TTY allocation. By default docker compose exec allocates a TTY.--privilegedGive extended privileges to the process.-u, --user stringRun the command as this user.-w, --workdir stringPath to workdir directory for this command.
Usage:docker compose images [SERVICE...]List images used by the created containers Options:-q, --quietOnly display IDs
Usage:docker compose kill [options] [SERVICE...]Force stop service containers. Options:-s, --signal stringSIGNAL to send to the container. (default "SIGKILL")
Usage:docker compose logs [SERVICE...]View output from containers Options:-f, --followFollow log output.--no-colorProduce monochrome output.--no-log-prefixDon't print prefix in logs.--since stringShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)--tail stringNumber of lines to show from the end of the logs for each container. (default "all")-t, --timestampsShow timestamps.--until stringShow logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
Usage:docker compose lsList running compose projects Options:-a, --allShow all stopped Compose projects--filter filterFilter output based on conditions provided.--format stringFormat the output. Values: [pretty | json]. (default "pretty")-q, --quietOnly display IDs.
Usage: docker compose pause [SERVICE...]
Pause services
Usage:docker compose port [options] [--] SERVICE PRIVATE_PORTPrint the public port for a port binding. Options:--index intindex of the container if service has multiple replicas (default 1)--protocol stringtcp or udp (default "tcp")
Usage:docker compose ps [SERVICE...]List containers Options:-a, --allShow all stopped containers (including those created by the run command)--format stringFormat the output. Values: [pretty | json] (default "pretty")-q, --quietOnly display IDs--servicesDisplay services--status stringArrayFilter services by status. Values: [paused | restarting | removing | running | dead | created | exited]
Usage:docker compose pull [SERVICE...]Pull service images Options:--ignore-pull-failuresPull what it can and ignores images with pull failures--include-depsAlso pull services declared as dependencies-q, --quietPull without printing progress information
Usage:docker compose push [SERVICE...]Push service images Options:--ignore-push-failuresPush what it can and ignores images with push failures
Usage:docker compose restartRestart containers Options:-t, --timeout intSpecify a shutdown timeout in seconds (default 10)
Usage:docker compose rm [SERVICE...]Removes stopped service containers By default, anonymous volumes attached to containers will not be removed. You can override this with -v. To list all volumes, use "docker volume ls". Any data which is not in a volume will be lost. Options:-f, --forceDon't ask to confirm removal-s, --stopStop the containers, if required, before removing-v, --volumesRemove any anonymous volumes attached to containers
Usage:docker compose run [options] [-v VOLUME...] [-p PORT...] [-e KEY=VAL...] [-l KEY=VALUE...] SERVICE [COMMAND] [ARGS...]Run a one-off command on a service. Options:-d, --detachRun container in background and print container ID--entrypoint stringOverride the entrypoint of the image-e, --env stringArraySet environment variables-i, --interactiveKeep STDIN open even if not attached. (default true)-l, --label stringArrayAdd or override a label--name stringAssign a name to the container-T, --no-TTYDisable pseudo-noTty allocation. By default docker compose run allocates a TTY--no-depsDon't start linked services.-p, --publish stringArrayPublish a container's port(s) to the host.--quiet-pullPull without printing progress information.--rmAutomatically remove the container when it exits--service-portsRun command with the service's ports enabled and mapped to the host.--use-aliasesUse the service's network useAliases in the network(s) the container connects to.-u, --user stringRun as specified username or uid-v, --volume stringArrayBind mount a volume.-w, --workdir stringWorking directory inside the container
Usage: docker compose start [SERVICE...]
Start services
Usage:docker compose stop [SERVICE...]Stop services Options:-t, --timeout intSpecify a shutdown timeout in seconds (default 10)
Usage: docker compose top [SERVICES...]
Display the running processes
Usage: docker compose unpause [SERVICE...]
Unpause services
Usage:docker compose up [SERVICE...]Create and start containers Options:--abort-on-container-exitStops all containers if any container was stopped. Incompatible with -d--always-recreate-depsRecreate dependent containers. Incompatible with --no-recreate.--attach stringArrayAttach to service output.--attach-dependenciesAttach to dependent containers.--buildBuild images before starting containers.-d, --detachDetached mode: Run containers in the background--exit-code-from stringReturn the exit code of the selected service container. Implies --abort-on-container-exit--force-recreateRecreate containers even if their configuration and image haven't changed.--no-buildDon't build an image, even if it's missing.--no-colorProduce monochrome output.--no-depsDon't start linked services.--no-log-prefixDon't print prefix in logs.--no-recreateIf containers already exist, don't recreate them. Incompatible with --force-recreate.--no-startDon't start the services after creating them.--quiet-pullPull without printing progress information.--remove-orphansRemove containers for services not defined in the Compose file.-V, --renew-anon-volumesRecreate anonymous volumes instead of retrieving data from the previous containers.--scale scaleScale SERVICE to NUM instances. Overrides the scale setting in the Compose file if present.-t, --timeout intUse this timeout in seconds for container shutdown when attached or when containers are already running. (default 10)--waitWait for services to be running|healthy. Implies detached mode.
Usage:docker compose versionShow the Docker Compose version information Options:-f, --format stringFormat the output. Values: [pretty | json]. (Default: pretty)--shortShows only Compose's version number.
Usage: docker config COMMAND
Manage Docker configs
Commands:
create Create a config from a file or STDIN
inspect Display detailed information on one or more configs
ls List configs
rm Remove one or more configs
Run 'docker config COMMAND --help' for more information on a command.
Usage:docker config create [OPTIONS] CONFIG file|-Create a config from a file or STDIN Options:-l, --label listConfig labels--template-driver stringTemplate driver
Usage:docker config inspect [OPTIONS] CONFIG [CONFIG...]Display detailed information on one or more configs Options:-f, --format stringFormat the output using the given Go template--prettyPrint the information in a human friendly format
Usage:docker config ls [OPTIONS]List configs Aliases: ls, list Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print configs using a Go template-q, --quietOnly display IDs
Usage: docker config rm CONFIG [CONFIG...]
Remove one or more configs
Aliases:
rm, remove
Usage: docker container COMMAND
Manage containers
Commands:
attach Attach local standard input, output, and error streams to a running container
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
exec Run a command in a running container
export Export a container's filesystem as a tar archive
inspect Display detailed information on one or more containers
kill Kill one or more running containers
logs Fetch the logs of a container
ls List containers
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
prune Remove all stopped containers
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
run Run a command in a new container
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
wait Block until one or more containers stop, then print their exit codes
Run 'docker container COMMAND --help' for more information on a command.
Usage:docker container attach [OPTIONS] CONTAINERAttach local standard input, output, and error streams to a running container Options:--detach-keys stringOverride the key sequence for detaching a container--no-stdinDo not attach STDIN--sig-proxyProxy all received signals to the process (default true)
Usage:docker container commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]Create a new image from a container's changes Options:-a, --author stringAuthor (e.g., "John Hannibal Smith") -c, --change listApply Dockerfile instruction to the created image-m, --message stringCommit message-p, --pausePause container during commit (default true)
Usage:docker container cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH Copy files/folders between a container and the local filesystem Use '-' as the source to read a tar archive from stdin and extract it to a directory destination in a container. Use '-' as the destination to stream a tar archive of a container source to stdout. Options:-a, --archiveArchive mode (copy all uid/gid information)-L, --follow-linkAlways follow symbol link in SRC_PATH
Usage:docker container create [OPTIONS] IMAGE [COMMAND] [ARG...]Create a new container Options:--add-host listAdd a custom host-to-IP mapping (host:ip)-a, --attach listAttach to STDIN, STDOUT or STDERR--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--blkio-weight-device listBlock IO weight (relative device weight) (default [])--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--cgroup-parent stringOptional parent cgroup for the container--cgroupns stringCgroup namespace to use (host|private) 'host': Run the container in the Docker host's cgroup namespace 'private': Run the container in its own private cgroup namespace '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)--cidfile stringWrite the container ID to the file--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit CPU real-time period in microseconds--cpu-rt-runtime intLimit CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--device listAdd a host device to the container--device-cgroup-rule listAdd a rule to the cgroup allowed devices list--device-read-bps listLimit read rate (bytes per second) from a device (default [])--device-read-iops listLimit read rate (IO per second) from a device (default [])--device-write-bps listLimit write rate (bytes per second) to a device (default [])--device-write-iops listLimit write rate (IO per second) to a device (default [])--disable-content-trustSkip image verification (default true)--dns listSet custom DNS servers--dns-option listSet DNS options--dns-search listSet custom DNS search domains--domainname stringContainer NIS domain name--entrypoint stringOverwrite the default ENTRYPOINT of the image-e, --env listSet environment variables--env-file listRead in a file of environment variables--expose listExpose a port or a range of ports--gpusgpu-request GPU devices to add to the container ('all' to pass all GPUs)--group-add listAdd additional groups to join--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h) (default 0s)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h) (default 0s)--helpPrint usage-h, --hostname stringContainer host name--initRun an init inside the container that forwards signals and reaps processes-i, --interactiveKeep STDIN open even if not attached--ip stringIPv4 address (e.g., 172.30.100.104)--ip6 stringIPv6 address (e.g., 2001:db8::33)--ipc stringIPC mode to use--isolation stringContainer isolation technology--kernel-memory bytesKernel memory limit-l, --label listSet meta data on a container--label-file listRead in a line delimited file of labels--link listAdd link to another container--link-local-ip listContainer IPv4/IPv6 link-local addresses--log-driver stringLogging driver for the container--log-opt listLog driver options--mac-address stringContainer MAC address (e.g., 92:d0:c6:0a:29:33)-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--memory-swappiness intTune container memory swappiness (0 to 100) (default -1)--mount mountAttach a filesystem mount to the container--name stringAssign a name to the container--network networkConnect a container to a network--network-alias listAdd network-scoped alias for the container--no-healthcheckDisable any container-specified HEALTHCHECK--oom-kill-disableDisable OOM Killer--oom-score-adj intTune host's OOM preferences (-1000 to 1000)--pid stringPID namespace to use--pids-limit intTune container pids limit (set -1 for unlimited)--platform stringSet platform if server is multi-platform capable--privilegedGive extended privileges to this container-p, --publish listPublish a container's port(s) to the host-P, --publish-allPublish all exposed ports to random ports--pull stringPull image before creating ("always"|"missing"|"never") (default "missing")--read-onlyMount the container's root filesystem as read only--restart stringRestart policy to apply when a container exits (default "no")--rmAutomatically remove the container when it exits--runtime stringRuntime to use for this container--security-opt listSecurity Options--shm-size bytesSize of /dev/shm--stop-signal stringSignal to stop a container (default "15")--stop-timeout intTimeout (in seconds) to stop a container--storage-opt listStorage driver options for the container--sysctl mapSysctl options (default map[])--tmpfs listMount a tmpfs directory-t, --ttyAllocate a pseudo-TTY--ulimit ulimitUlimit options (default [])-u, --user stringUsername or UID (format:[: ]) --userns stringUser namespace to use--uts stringUTS namespace to use-v, --volume listBind mount a volume--volume-driver stringOptional volume driver for the container--volumes-from listMount volumes from the specified container(s)-w, --workdir stringWorking directory inside the container
Usage: docker container diff CONTAINER
Inspect changes to files or directories on a container's filesystem
Usage:docker container exec [OPTIONS] CONTAINER COMMAND [ARG...]Run a command in a running container Options:-d, --detachDetached mode: run command in the background--detach-keys stringOverride the key sequence for detaching a container-e, --env listSet environment variables--env-file listRead in a file of environment variables-i, --interactiveKeep STDIN open even if not attached--privilegedGive extended privileges to the command-t, --ttyAllocate a pseudo-TTY-u, --user stringUsername or UID (format:[: ]) -w, --workdir stringWorking directory inside the container
Usage:docker container export [OPTIONS] CONTAINERExport a container's filesystem as a tar archive Options:-o, --output stringWrite to a file, instead of STDOUT
Usage:docker container inspect [OPTIONS] CONTAINER [CONTAINER...]Display detailed information on one or more containers Options:-f, --format stringFormat the output using the given Go template-s, --sizeDisplay total file sizes
Usage:docker container kill [OPTIONS] CONTAINER [CONTAINER...]Kill one or more running containers Options:-s, --signal stringSignal to send to the container (default "KILL")
Usage:docker container logs [OPTIONS] CONTAINERFetch the logs of a container Options:--detailsShow extra details provided to logs-f, --followFollow log output--since stringShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)-n, --tail stringNumber of lines to show from the end of the logs (default "all")-t, --timestampsShow timestamps--until stringShow logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
Usage:docker container ls [OPTIONS]List containers Aliases: ls, ps, list Options:-a, --allShow all containers (default shows just running)-f, --filter filterFilter output based on conditions provided--format stringPretty-print containers using a Go template-n, --last intShow n last created containers (includes all states) (default -1)-l, --latestShow the latest created container (includes all states)--no-truncDon't truncate output-q, --quietOnly display container IDs-s, --sizeDisplay total file sizes
Usage: docker container pause CONTAINER [CONTAINER...]
Pause all processes within one or more containers
Usage: docker container port CONTAINER [PRIVATE_PORT[/PROTO]]
List port mappings or a specific mapping for the container
Usage:docker container prune [OPTIONS]Remove all stopped containers Options:--filter filterProvide filter values (e.g. 'until=') -f, --forceDo not prompt for confirmation
Usage: docker container rename CONTAINER NEW_NAME
Rename a container
Usage:docker container restart [OPTIONS] CONTAINER [CONTAINER...]Restart one or more containers Options:-t, --time intSeconds to wait for stop before killing the container (default 10)
Usage:docker container rm [OPTIONS] CONTAINER [CONTAINER...]Remove one or more containers Options:-f, --forceForce the removal of a running container (uses SIGKILL)-l, --linkRemove the specified link-v, --volumesRemove anonymous volumes associated with the container
Usage:docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]Run a command in a new container Options:--add-host listAdd a custom host-to-IP mapping (host:ip)-a, --attach listAttach to STDIN, STDOUT or STDERR--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--blkio-weight-device listBlock IO weight (relative device weight) (default [])--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--cgroup-parent stringOptional parent cgroup for the container--cgroupns stringCgroup namespace to use (host|private) 'host': Run the container in the Docker host's cgroup namespace 'private': Run the container in its own private cgroup namespace '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)--cidfile stringWrite the container ID to the file--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit CPU real-time period in microseconds--cpu-rt-runtime intLimit CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)-d, --detachRun container in background and print container ID--detach-keys stringOverride the key sequence for detaching a container--device listAdd a host device to the container--device-cgroup-rule listAdd a rule to the cgroup allowed devices list--device-read-bps listLimit read rate (bytes per second) from a device (default [])--device-read-iops listLimit read rate (IO per second) from a device (default [])--device-write-bps listLimit write rate (bytes per second) to a device (default [])--device-write-iops listLimit write rate (IO per second) to a device (default [])--disable-content-trustSkip image verification (default true)--dns listSet custom DNS servers--dns-option listSet DNS options--dns-search listSet custom DNS search domains--domainname stringContainer NIS domain name--entrypoint stringOverwrite the default ENTRYPOINT of the image-e, --env listSet environment variables--env-file listRead in a file of environment variables--expose listExpose a port or a range of ports--gpusgpu-request GPU devices to add to the container ('all' to pass all GPUs)--group-add listAdd additional groups to join--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h) (default 0s)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h) (default 0s)--helpPrint usage-h, --hostname stringContainer host name--initRun an init inside the container that forwards signals and reaps processes-i, --interactiveKeep STDIN open even if not attached--ip stringIPv4 address (e.g., 172.30.100.104)--ip6 stringIPv6 address (e.g., 2001:db8::33)--ipc stringIPC mode to use--isolation stringContainer isolation technology--kernel-memory bytesKernel memory limit-l, --label listSet meta data on a container--label-file listRead in a line delimited file of labels--link listAdd link to another container--link-local-ip listContainer IPv4/IPv6 link-local addresses--log-driver stringLogging driver for the container--log-opt listLog driver options--mac-address stringContainer MAC address (e.g., 92:d0:c6:0a:29:33)-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--memory-swappiness intTune container memory swappiness (0 to 100) (default -1)--mount mountAttach a filesystem mount to the container--name stringAssign a name to the container--network networkConnect a container to a network--network-alias listAdd network-scoped alias for the container--no-healthcheckDisable any container-specified HEALTHCHECK--oom-kill-disableDisable OOM Killer--oom-score-adj intTune host's OOM preferences (-1000 to 1000)--pid stringPID namespace to use--pids-limit intTune container pids limit (set -1 for unlimited)--platform stringSet platform if server is multi-platform capable--privilegedGive extended privileges to this container-p, --publish listPublish a container's port(s) to the host-P, --publish-allPublish all exposed ports to random ports--pull stringPull image before running ("always"|"missing"|"never") (default "missing")--read-onlyMount the container's root filesystem as read only--restart stringRestart policy to apply when a container exits (default "no")--rmAutomatically remove the container when it exits--runtime stringRuntime to use for this container--security-opt listSecurity Options--shm-size bytesSize of /dev/shm--sig-proxyProxy received signals to the process (default true)--stop-signal stringSignal to stop a container (default "15")--stop-timeout intTimeout (in seconds) to stop a container--storage-opt listStorage driver options for the container--sysctl mapSysctl options (default map[])--tmpfs listMount a tmpfs directory-t, --ttyAllocate a pseudo-TTY--ulimit ulimitUlimit options (default [])-u, --user stringUsername or UID (format:[: ]) --userns stringUser namespace to use--uts stringUTS namespace to use-v, --volume listBind mount a volume--volume-driver stringOptional volume driver for the container--volumes-from listMount volumes from the specified container(s)-w, --workdir stringWorking directory inside the container
Usage:docker container start [OPTIONS] CONTAINER [CONTAINER...]Start one or more stopped containers Options:-a, --attachAttach STDOUT/STDERR and forward signals--detach-keys stringOverride the key sequence for detaching a container-i, --interactiveAttach container's STDIN
Usage:docker container stats [OPTIONS] [CONTAINER...]Display a live stream of container(s) resource usage statistics Options:-a, --allShow all containers (default shows just running)--format stringPretty-print images using a Go template--no-streamDisable streaming stats and only pull the first result--no-truncDo not truncate output
Usage:docker container stop [OPTIONS] CONTAINER [CONTAINER...]Stop one or more running containers Options:-t, --time intSeconds to wait for stop before killing it (default 10)
Usage: docker container top CONTAINER [ps OPTIONS]
Display the running processes of a container
Usage: docker container unpause CONTAINER [CONTAINER...]
Unpause all processes within one or more containers
Usage:docker container update [OPTIONS] CONTAINER [CONTAINER...]Update configuration of one or more containers Options:--blkio-weight uint16Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--cpu-period intLimit CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-period intLimit the CPU real-time period in microseconds--cpu-rt-runtime intLimit the CPU real-time runtime in microseconds-c, --cpu-shares intCPU shares (relative weight)--cpus decimalNumber of CPUs--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--kernel-memory bytesKernel memory limit-m, --memory bytesMemory limit--memory-reservation bytesMemory soft limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--pids-limit intTune container pids limit (set -1 for unlimited)--restart stringRestart policy to apply when a container exits
Usage: docker container wait CONTAINER [CONTAINER...]
Block until one or more containers stop, then print their exit codes
Usage:docker context [command]Manage contexts Commands: create Create new context export Export a context to a tar or kubeconfig file import Import a context from a tar or zip file inspect Display detailed information on one or more contexts list List available contexts rm Remove one or more contexts show Print the current context update Update a context use Set the default context Flags:-h, --helpHelp for context Use "docker context [command] --help" for more information about a command.
Create a new context Create docker engine context: $ docker context create CONTEXT [flags] Create Azure Container Instances context: $ docker context create aci CONTEXT [flags] (see docker context create aci --help) Create Amazon ECS context: $ docker context create ecs CONTEXT [flags] (see docker context create ecs --help) Docker endpoint config: NAME DESCRIPTION from Copy named context's Docker endpoint configuration host Docker endpoint on which to connect ca Trust certs signed only by this CA cert Path to TLS certificate file key Path to TLS key file skip-tls-verify Skip TLS certificate validation Kubernetes endpoint config: NAME DESCRIPTION from Copy named context's Kubernetes endpoint configuration config-file Path to a Kubernetes config file context-override Overrides the context set in the kubernetes config file namespace-override Overrides the namespace set in the kubernetes config file Example: $ docker context create my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" Usage:docker context create CONTEXT [flags]docker context create [command]Available Commands: aci Create a context for Azure Container Instances ecs Create a context for Amazon ECS Flags:--default-stack-orchestrator stringDefault orchestrator for stack operations to use with this context (swarm|kubernetes|all)--description stringDescription of the context--docker stringToStringSet the docker endpoint (default [])--from stringCreate context from a named context-h, --helpHelp for create--kubernetes stringToStringSet the kubernetes endpoint (default []) Use "docker context create [command] --help" for more information about a command.
Export a context to a tar or kubeconfig file Usage:docker context export [flags]Flags:-h, --helpHelp for export--kubeconfigExport as a kubeconfig file
Import a context from a tar or zip file Usage:docker context import [flags]Flags:-h, --helpHelp for import
Display detailed information on one or more contexts Usage:docker context inspect [flags]Flags:-f, --format stringFormat the output using the given Go template-h, --helpHelp for inspect
List available contexts Usage:docker context list [flags]Aliases: list, ls Flags:--format stringFormat the output. Values: [pretty | json]. (Default: pretty)-h, --helpHelp for list-q, --quietOnly show context names
Remove one or more contexts Usage:docker context rm CONTEXT [CONTEXT...] [flags]Aliases: rm, remove Flags:-f, --forceForce removing current context-h, --helpHelp for rm
Print the current context Usage:docker context show [flags]Flags:-h, --helpHelp for show
Update a context Docker endpoint config: NAME DESCRIPTION from Copy named context's Docker endpoint configuration host Docker endpoint on which to connect ca Trust certs signed only by this CA cert Path to TLS certificate file key Path to TLS key file skip-tls-verify Skip TLS certificate validation Kubernetes endpoint config: NAME DESCRIPTION from Copy named context's Kubernetes endpoint configuration config-file Path to a Kubernetes config file context-override Overrides the context set in the kubernetes config file namespace-override Overrides the namespace set in the kubernetes config file Example: $ docker context update my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" Usage:docker context update [flags]Flags:--default-stack-orchestrator stringDefault orchestrator for stack operations to use with this context (swarm|kubernetes|all)--description stringDescription of the context--docker stringToStringSet the docker endpoint (default [])-h, --helpHelp for update--kubernetes stringToStringSet the kubernetes endpoint (default [])
Set the default context Usage:docker context use CONTEXT [flags]Flags:-h, --helpHelp for use
Usage: docker image COMMAND
Manage images
Commands:
build Build an image from a Dockerfile
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Display detailed information on one or more images
load Load an image from a tar archive or STDIN
ls List images
prune Remove unused images
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rm Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Run 'docker image COMMAND --help' for more information on a command.
Usage:docker image build [OPTIONS] PATH | URL | -Build an image from a Dockerfile Options:--add-host listAdd a custom host-to-IP mapping (host:ip)--build-arg listSet build-time variables--cache-from stringsImages to consider as cache sources--cgroup-parent stringOptional parent cgroup for the container--compressCompress the build context using gzip--cpu-period intLimit the CPU CFS (Completely Fair Scheduler) period--cpu-quota intLimit the CPU CFS (Completely Fair Scheduler) quota-c, --cpu-shares intCPU shares (relative weight)--cpuset-cpus stringCPUs in which to allow execution (0-3, 0,1)--cpuset-mems stringMEMs in which to allow execution (0-3, 0,1)--disable-content-trustSkip image verification (default true)-f, --file stringName of the Dockerfile (Default is 'PATH/Dockerfile')--force-rmAlways remove intermediate containers--iidfile stringWrite the image ID to the file--isolation stringContainer isolation technology--label listSet metadata for an image-m, --memory bytesMemory limit--memory-swap bytesSwap limit equal to memory plus swap: '-1' to enable unlimited swap--network stringSet the networking mode for the RUN instructions during build (default "default")--no-cacheDo not use cache when building the image--pullAlways attempt to pull a newer version of the image-q, --quietSuppress the build output and print image ID on success--rmRemove intermediate containers after a successful build (default true)--security-opt stringsSecurity options--shm-size bytesSize of /dev/shm--squashSquash newly built layers into a single new layer-t, --tag listName and optionally a tag in the 'name:tag' format--target stringSet the target build stage to build.--ulimit ulimitUlimit options (default [])
Usage:docker image history [OPTIONS] IMAGEShow the history of an image Options:--format stringPretty-print images using a Go template-H, --humanPrint sizes and dates in human readable format (default true)--no-truncDon't truncate output-q, --quietOnly show image IDs
Usage:docker image import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]Import the contents from a tarball to create a filesystem image Options:-c, --change listApply Dockerfile instruction to the created image-m, --message stringSet commit message for imported image--platform stringSet platform if server is multi-platform capable
Usage:docker image inspect [OPTIONS] IMAGE [IMAGE...]Display detailed information on one or more images Options:-f, --format stringFormat the output using the given Go template
Usage:docker image load [OPTIONS]Load an image from a tar archive or STDIN Options:-i, --input stringRead from tar archive file, instead of STDIN-q, --quietSuppress the load output
Usage:docker image ls [OPTIONS] [REPOSITORY[:TAG]]List images Aliases: ls, list Options:-a, --allShow all images (default hides intermediate images)--digestsShow digests-f, --filter filterFilter output based on conditions provided--format stringPretty-print images using a Go template--no-truncDon't truncate output-q, --quietOnly show image IDs
Usage:docker image prune [OPTIONS]Remove unused images Options:-a, --allRemove all unused images, not just dangling ones--filter filterProvide filter values (e.g. 'until=') -f, --forceDo not prompt for confirmation
Usage:docker image pull [OPTIONS] NAME[:TAG|@DIGEST]Pull an image or a repository from a registry Options:-a, --all-tagsDownload all tagged images in the repository--disable-content-trustSkip image verification (default true)--platform stringSet platform if server is multi-platform capable-q, --quietSuppress verbose output
Usage:docker image push [OPTIONS] NAME[:TAG]Push an image or a repository to a registry Options:-a, --all-tagsPush all tagged images in the repository--disable-content-trustSkip image signing (default true)-q, --quietSuppress verbose output
Usage:docker image rm [OPTIONS] IMAGE [IMAGE...]Remove one or more images Aliases: rm, rmi, remove Options:-f, --forceForce removal of the image--no-pruneDo not delete untagged parents
Usage:docker image save [OPTIONS] IMAGE [IMAGE...]Save one or more images to a tar archive (streamed to STDOUT by default) Options:-o, --output stringWrite to a file, instead of STDOUT
Usage: docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Usage:docker manifest COMMANDThe **docker manifest** command has subcommands for managing image manifests and manifest lists. A manifest list allows you to use one name to refer to the same image built for multiple architectures. To see help for a subcommand, use:docker manifest CMD --helpFor full details on using docker manifest lists, see the registry v2 specification. EXPERIMENTAL:docker manifest is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/ Commands: annotate Add additional information to a local image manifest create Create a local manifest list for annotating and pushing to a registry inspect Display an image manifest, or manifest list push Push a manifest list to a repository rm Delete one or more manifest lists from local storage Run 'docker manifest COMMAND --help' for more information on a command.
Usage:docker manifest annotate [OPTIONS] MANIFEST_LIST MANIFESTAdd additional information to a local image manifest EXPERIMENTAL:docker manifest annotate is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/ Options:--arch stringSet architecture--os stringSet operating system--os-features stringsSet operating system feature--os-version stringSet operating system version--variant stringSet architecture variant
Usage:docker manifest create MANIFEST_LIST MANIFEST [MANIFEST...]Create a local manifest list for annotating and pushing to a registry EXPERIMENTAL:docker manifest create is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/ Options:-a, --amendAmend an existing manifest list--insecureAllow communication with an insecure registry
Usage:docker manifest inspect [OPTIONS] [MANIFEST_LIST] MANIFESTDisplay an image manifest, or manifest list EXPERIMENTAL:docker manifest inspect is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/ Options:--insecureAllow communication with an insecure registry-v, --verboseOutput additional info including layers and platform
Usage:docker manifest push [OPTIONS] MANIFEST_LISTPush a manifest list to a repository EXPERIMENTAL:docker manifest push is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/ Options:--insecureAllow push to an insecure registry-p, --purgeRemove the local manifest list after push
Usage:docker manifest rm MANIFEST_LIST [MANIFEST_LIST...]Delete one or more manifest lists from local storage EXPERIMENTAL:docker manifest rm is an experimental feature.Experimental features provide early access to product functionality. These features may change between releases without warning, or can be removed from a future release. Learn more about experimental features in our documentation: https://docs.docker.com/go/experimental/
Usage: docker network COMMAND
Manage networks
Commands:
connect Connect a container to a network
create Create a network
disconnect Disconnect a container from a network
inspect Display detailed information on one or more networks
ls List networks
prune Remove all unused networks
rm Remove one or more networks
Run 'docker network COMMAND --help' for more information on a command.
Usage:docker network connect [OPTIONS] NETWORK CONTAINERConnect a container to a network Options:--alias stringsAdd network-scoped alias for the container--driver-opt stringsdriver options for the network--ip stringIPv4 address (e.g., 172.30.100.104)--ip6 stringIPv6 address (e.g., 2001:db8::33)--link listAdd link to another container--link-local-ip stringsAdd a link-local address for the container
Usage:docker network create [OPTIONS] NETWORKCreate a network Options:--attachableEnable manual container attachment--aux-address mapAuxiliary IPv4 or IPv6 addresses used by Network driver (default map[])--config-from stringThe network from which to copy the configuration--config-onlyCreate a configuration only network-d, --driver stringDriver to manage the Network (default "bridge")--gateway stringsIPv4 or IPv6 Gateway for the master subnet--ingressCreate swarm routing-mesh network--internalRestrict external access to the network--ip-range stringsAllocate container ip from a sub-range--ipam-driver stringIP Address Management Driver (default "default")--ipam-opt mapSet IPAM driver specific options (default map[])--ipv6Enable IPv6 networking--label listSet metadata on a network-o, --opt mapSet driver specific options (default map[])--scope stringControl the network's scope--subnet stringsSubnet in CIDR format that represents a network segment
Usage:docker network disconnect [OPTIONS] NETWORK CONTAINERDisconnect a container from a network Options:-f, --forceForce the container to disconnect from a network
Usage:docker network inspect [OPTIONS] NETWORK [NETWORK...]Display detailed information on one or more networks Options:-f, --format stringFormat the output using the given Go template-v, --verboseVerbose output for diagnostics
Usage:docker network ls [OPTIONS]List networks Aliases: ls, list Options:-f, --filter filterProvide filter values (e.g. 'driver=bridge')--format stringPretty-print networks using a Go template--no-truncDo not truncate the output-q, --quietOnly display network IDs
Usage:docker network prune [OPTIONS]Remove all unused networks Options:--filter filterProvide filter values (e.g. 'until=') -f, --forceDo not prompt for confirmation
Usage: docker network rm NETWORK [NETWORK...]
Remove one or more networks
Aliases:
rm, remove
Usage: docker node COMMAND
Manage Swarm nodes
Commands:
demote Demote one or more nodes from manager in the swarm
inspect Display detailed information on one or more nodes
ls List nodes in the swarm
promote Promote one or more nodes to manager in the swarm
ps List tasks running on one or more nodes, defaults to current node
rm Remove one or more nodes from the swarm
update Update a node
Run 'docker node COMMAND --help' for more information on a command.
Usage: docker node demote NODE [NODE...]
Demote one or more nodes from manager in the swarm
Usage:docker node inspect [OPTIONS] self|NODE [NODE...]Display detailed information on one or more nodes Options:-f, --format stringFormat the output using the given Go template--prettyPrint the information in a human friendly format
Usage:docker node ls [OPTIONS]List nodes in the swarm Aliases: ls, list Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print nodes using a Go template-q, --quietOnly display IDs
Usage: docker node promote NODE [NODE...]
Promote one or more nodes to manager in the swarm
Usage:docker node ps [OPTIONS] [NODE...]List tasks running on one or more nodes, defaults to current node Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print tasks using a Go template--no-resolveDo not map IDs to Names--no-truncDo not truncate output-q, --quietOnly display task IDs
Usage:docker node rm [OPTIONS] NODE [NODE...]Remove one or more nodes from the swarm Aliases: rm, remove Options:-f, --forceForce remove a node from the swarm
Usage:docker node update [OPTIONS] NODEUpdate a node Options:--availability stringAvailability of the node ("active"|"pause"|"drain")--label-add listAdd or update a node label (key=value)--label-rm listRemove a node label if exists--role stringRole of the node ("worker"|"manager")
Usage: docker plugin COMMAND
Manage plugins
Commands:
create Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.
disable Disable a plugin
enable Enable a plugin
inspect Display detailed information on one or more plugins
install Install a plugin
ls List plugins
push Push a plugin to a registry
rm Remove one or more plugins
set Change settings for a plugin
upgrade Upgrade an existing plugin
Run 'docker plugin COMMAND --help' for more information on a command.
Usage:docker plugin create [OPTIONS] PLUGIN PLUGIN-DATA-DIRCreate a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory. Options:--compressCompress the context using gzip
Usage:docker plugin disable [OPTIONS] PLUGINDisable a plugin Options:-f, --forceForce the disable of an active plugin
Usage:docker plugin enable [OPTIONS] PLUGINEnable a plugin Options:--timeout intHTTP client timeout (in seconds) (default 30)
Usage:docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]Display detailed information on one or more plugins Options:-f, --format stringFormat the output using the given Go template
Usage:docker plugin install [OPTIONS] PLUGIN [KEY=VALUE...]Install a plugin Options:--alias stringLocal name for plugin--disableDo not enable the plugin on install--disable-content-trustSkip image verification (default true)--grant-all-permissionsGrant all permissions necessary to run the plugin
Usage:docker plugin ls [OPTIONS]List plugins Aliases: ls, list Options:-f, --filter filterProvide filter values (e.g. 'enabled=true')--format stringPretty-print plugins using a Go template--no-truncDon't truncate output-q, --quietOnly display plugin IDs
Usage:docker plugin push [OPTIONS] PLUGIN[:TAG]Push a plugin to a registry Options:--disable-content-trustSkip image signing (default true)
Usage:docker plugin rm [OPTIONS] PLUGIN [PLUGIN...]Remove one or more plugins Aliases: rm, remove Options:-f, --forceForce the removal of an active plugin
Usage: docker plugin set PLUGIN KEY=VALUE [KEY=VALUE...]
Change settings for a plugin
Usage:docker plugin upgrade [OPTIONS] PLUGIN [REMOTE]Upgrade an existing plugin Options:--disable-content-trustSkip image verification (default true)--grant-all-permissionsGrant all permissions necessary to run the plugin--skip-remote-checkDo not check if specified remote plugin matches existing plugin image
Usage:docker scan [OPTIONS] IMAGEA tool to scan your images Options:--accept-licenseAccept using a third party scanning provider--dependency-treeShow dependency tree with scan results--exclude-baseExclude base image from vulnerability scanning (requires --file)-f, --file stringDockerfile associated with image, provides more detailed results--group-issuesAggregate duplicated vulnerabilities and group them to a single one (requires --json)--jsonOutput results in JSON format--loginAuthenticate to the scan provider using an optional token (with --token), or web base token if empty--reject-licenseReject using a third party scanning provider--severity stringOnly report vulnerabilities of provided level or higher (low|medium|high)--token stringAuthentication token to login to the third party scanning provider--versionDisplay version of the scan plugin
Usage: docker secret COMMAND
Manage Docker secrets
Commands:
create Create a secret from a file or STDIN as content
inspect Display detailed information on one or more secrets
ls List secrets
rm Remove one or more secrets
Run 'docker secret COMMAND --help' for more information on a command.
Usage:docker secret create [OPTIONS] SECRET [file|-]Create a secret from a file or STDIN as content Options:-d, --driver stringSecret driver-l, --label listSecret labels--template-driver stringTemplate driver
Usage:docker secret inspect [OPTIONS] SECRET [SECRET...]Display detailed information on one or more secrets Options:-f, --format stringFormat the output using the given Go template--prettyPrint the information in a human friendly format
Usage:docker secret ls [OPTIONS]List secrets Aliases: ls, list Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print secrets using a Go template-q, --quietOnly display IDs
Usage: docker secret rm SECRET [SECRET...]
Remove one or more secrets
Aliases:
rm, remove
Usage: docker service COMMAND
Manage services
Commands:
create Create a new service
inspect Display detailed information on one or more services
logs Fetch the logs of a service or task
ls List services
ps List the tasks of one or more services
rm Remove one or more services
rollback Revert changes to a service's configuration
scale Scale one or multiple replicated services
update Update a service
Run 'docker service COMMAND --help' for more information on a command.
Usage:docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]Create a new service Options:--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--config configSpecify configurations to expose to the service--constraint listPlacement constraints--container-label listContainer labels--credential-speccredential-spec Credential spec for managed service account (Windows only)-d, --detachExit immediately instead of waiting for the service to converge--dns listSet custom DNS servers--dns-option listSet DNS options--dns-search listSet custom DNS search domains--endpoint-mode stringEndpoint mode (vip or dnsrr) (default "vip")--entrypoint commandOverwrite the default ENTRYPOINT of the image-e, --env listSet environment variables--env-file listRead in a file of environment variables--generic-resource listUser defined resources--group listSet one or more supplementary user groups for the container--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before counting retries towards unstable (ms|s|m|h)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h)--host listSet one or more custom host-to-IP mappings (host:ip)--hostname stringContainer hostname--initUse an init inside each service container to forward signals and reap processes--isolation stringService container isolation mode-l, --label listService labels--limit-cpu decimalLimit CPUs--limit-memory bytesLimit Memory--limit-pids intLimit maximum number of processes (default 0 = unlimited)--log-driver stringLogging driver for service--log-opt listLogging driver options--max-concurrent uintNumber of job tasks to run concurrently (default equal to --replicas)--mode stringService mode (replicated, global, replicated-job, or global-job) (default "replicated")--mount mountAttach a filesystem mount to the service--name stringService name--network networkNetwork attachments--no-healthcheckDisable any container-specified HEALTHCHECK--no-resolve-imageDo not query the registry to resolve image digest and supported platforms--placement-pref prefAdd a placement preference-p, --publish portPublish a port as a node port-q, --quietSuppress progress output--read-onlyMount the container's root filesystem as read only--replicas uintNumber of tasks--replicas-max-per-node uintMaximum number of tasks per node (default 0 = unlimited)--reserve-cpu decimalReserve CPUs--reserve-memory bytesReserve Memory--restart-condition stringRestart when condition is met ("none"|"on-failure"|"any") (default "any")--restart-delay durationDelay between restart attempts (ns|us|ms|s|m|h) (default 5s)--restart-max-attempts uintMaximum number of restarts before giving up--restart-window durationWindow used to evaluate the restart policy (ns|us|ms|s|m|h)--rollback-delay durationDelay between task rollbacks (ns|us|ms|s|m|h) (default 0s)--rollback-failure-action stringAction on rollback failure ("pause"|"continue") (default "pause")--rollback-max-failure-ratio floatFailure rate to tolerate during a rollback (default 0)--rollback-monitor durationDuration after each task rollback to monitor for failure (ns|us|ms|s|m|h) (default 5s)--rollback-order stringRollback order ("start-first"|"stop-first") (default "stop-first")--rollback-parallelism uintMaximum number of tasks rolled back simultaneously (0 to roll back all at once) (default 1)--secret secretSpecify secrets to expose to the service--stop-grace-period durationTime to wait before force killing a container (ns|us|ms|s|m|h) (default 10s)--stop-signal stringSignal to stop the container--sysctl listSysctl options-t, --ttyAllocate a pseudo-TTY--ulimit ulimitUlimit options (default [])--update-delay durationDelay between updates (ns|us|ms|s|m|h) (default 0s)--update-failure-action stringAction on update failure ("pause"|"continue"|"rollback") (default "pause")--update-max-failure-ratio floatFailure rate to tolerate during an update (default 0)--update-monitor durationDuration after each task update to monitor for failure (ns|us|ms|s|m|h) (default 5s)--update-order stringUpdate order ("start-first"|"stop-first") (default "stop-first")--update-parallelism uintMaximum number of tasks updated simultaneously (0 to update all at once) (default 1)-u, --user stringUsername or UID (format:[: ]) --with-registry-authSend registry authentication details to swarm agents-w, --workdir stringWorking directory inside the container
Usage:docker service inspect [OPTIONS] SERVICE [SERVICE...]Display detailed information on one or more services Options:-f, --format stringFormat the output using the given Go template--prettyPrint the information in a human friendly format
Usage:docker service logs [OPTIONS] SERVICE|TASKFetch the logs of a service or task Options:--detailsShow extra details provided to logs-f, --followFollow log output--no-resolveDo not map IDs to Names in output--no-task-idsDo not include task IDs in output--no-truncDo not truncate output--rawDo not neatly format logs--since stringShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)-n, --tail stringNumber of lines to show from the end of the logs (default "all")-t, --timestampsShow timestamps
Usage:docker service ls [OPTIONS]List services Aliases: ls, list Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print services using a Go template-q, --quietOnly display IDs
Usage:docker service ps [OPTIONS] SERVICE [SERVICE...]List the tasks of one or more services Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print tasks using a Go template--no-resolveDo not map IDs to Names--no-truncDo not truncate output-q, --quietOnly display task IDs
Usage: docker service rm SERVICE [SERVICE...]
Remove one or more services
Aliases:
rm, remove
Usage:docker service rollback [OPTIONS] SERVICERevert changes to a service's configuration Options:-d, --detachExit immediately instead of waiting for the service to converge-q, --quietSuppress progress output
Usage:docker service scale SERVICE=REPLICAS [SERVICE=REPLICAS...]Scale one or multiple replicated services Options:-d, --detachExit immediately instead of waiting for the service to converge
Usage:docker service update [OPTIONS] SERVICEUpdate a service Options:--args commandService command args--cap-add listAdd Linux capabilities--cap-drop listDrop Linux capabilities--config-add configAdd or update a config file on a service--config-rm listRemove a configuration file--constraint-add listAdd or update a placement constraint--constraint-rm listRemove a constraint--container-label-add listAdd or update a container label--container-label-rm listRemove a container label by its key--credential-speccredential-spec Credential spec for managed service account (Windows only)-d, --detachExit immediately instead of waiting for the service to converge--dns-add listAdd or update a custom DNS server--dns-option-add listAdd or update a DNS option--dns-option-rm listRemove a DNS option--dns-rm listRemove a custom DNS server--dns-search-add listAdd or update a custom DNS search domain--dns-search-rm listRemove a DNS search domain--endpoint-mode stringEndpoint mode (vip or dnsrr)--entrypoint commandOverwrite the default ENTRYPOINT of the image--env-add listAdd or update an environment variable--env-rm listRemove an environment variable--forceForce update even if no changes require it--generic-resource-add listAdd a Generic resource--generic-resource-rm listRemove a Generic resource--group-add listAdd an additional supplementary user group to the container--group-rm listRemove a previously added supplementary user group from the container--health-cmd stringCommand to run to check health--health-interval durationTime between running the check (ms|s|m|h)--health-retries intConsecutive failures needed to report unhealthy--health-start-period durationStart period for the container to initialize before counting retries towards unstable (ms|s|m|h)--health-timeout durationMaximum time to allow one check to run (ms|s|m|h)--host-add listAdd a custom host-to-IP mapping (host:ip)--host-rm listRemove a custom host-to-IP mapping (host:ip)--hostname stringContainer hostname--image stringService image tag--initUse an init inside each service container to forward signals and reap processes--isolation stringService container isolation mode--label-add listAdd or update a service label--label-rm listRemove a label by its key--limit-cpu decimalLimit CPUs--limit-memory bytesLimit Memory--limit-pids intLimit maximum number of processes (default 0 = unlimited)--log-driver stringLogging driver for service--log-opt listLogging driver options--max-concurrent uintNumber of job tasks to run concurrently (default equal to --replicas)--mount-add mountAdd or update a mount on a service--mount-rm listRemove a mount by its target path--network-add networkAdd a network--network-rm listRemove a network--no-healthcheckDisable any container-specified HEALTHCHECK--no-resolve-imageDo not query the registry to resolve image digest and supported platforms--placement-pref-add prefAdd a placement preference--placement-pref-rm prefRemove a placement preference--publish-add portAdd or update a published port--publish-rm portRemove a published port by its target port-q, --quietSuppress progress output--read-onlyMount the container's root filesystem as read only--replicas uintNumber of tasks--replicas-max-per-node uintMaximum number of tasks per node (default 0 = unlimited)--reserve-cpu decimalReserve CPUs--reserve-memory bytesReserve Memory--restart-condition stringRestart when condition is met ("none"|"on-failure"|"any")--restart-delay durationDelay between restart attempts (ns|us|ms|s|m|h)--restart-max-attempts uintMaximum number of restarts before giving up--restart-window durationWindow used to evaluate the restart policy (ns|us|ms|s|m|h)--rollbackRollback to previous specification--rollback-delay durationDelay between task rollbacks (ns|us|ms|s|m|h)--rollback-failure-action stringAction on rollback failure ("pause"|"continue")--rollback-max-failure-ratio floatFailure rate to tolerate during a rollback--rollback-monitor durationDuration after each task rollback to monitor for failure (ns|us|ms|s|m|h)--rollback-order stringRollback order ("start-first"|"stop-first")--rollback-parallelism uintMaximum number of tasks rolled back simultaneously (0 to roll back all at once)--secret-add secretAdd or update a secret on a service--secret-rm listRemove a secret--stop-grace-period durationTime to wait before force killing a container (ns|us|ms|s|m|h)--stop-signal stringSignal to stop the container--sysctl-add listAdd or update a Sysctl option--sysctl-rm listRemove a Sysctl option-t, --ttyAllocate a pseudo-TTY--ulimit-add ulimitAdd or update a ulimit option (default [])--ulimit-rm listRemove a ulimit option--update-delay durationDelay between updates (ns|us|ms|s|m|h)--update-failure-action stringAction on update failure ("pause"|"continue"|"rollback")--update-max-failure-ratio floatFailure rate to tolerate during an update--update-monitor durationDuration after each task update to monitor for failure (ns|us|ms|s|m|h)--update-order stringUpdate order ("start-first"|"stop-first")--update-parallelism uintMaximum number of tasks updated simultaneously (0 to update all at once)-u, --user stringUsername or UID (format:[: ]) --with-registry-authSend registry authentication details to swarm agents-w, --workdir stringWorking directory inside the container
Usage:docker stack [OPTIONS] COMMANDManage Docker stacks Options:--orchestrator stringOrchestrator to use (swarm|kubernetes|all) Commands: deploy Deploy a new stack or update an existing stack ls List stacks ps List the tasks in the stack rm Remove one or more stacks services List the services in the stack Run 'docker stack COMMAND --help' for more information on a command.
Usage:docker stack deploy [OPTIONS] STACKDeploy a new stack or update an existing stack Aliases: deploy, up Options:-c, --compose-file stringsPath to a Compose file, or "-" to read from stdin--orchestrator stringOrchestrator to use (swarm|kubernetes|all)--prunePrune services that are no longer referenced--resolve-image stringQuery the registry to resolve image digest and supported platforms ("always"|"changed"|"never") (default "always")--with-registry-authSend registry authentication details to Swarm agents
Usage:docker stack ls [OPTIONS]List stacks Aliases: ls, list Options:--format stringPretty-print stacks using a Go template--orchestrator stringOrchestrator to use (swarm|kubernetes|all)
Usage:docker stack ps [OPTIONS] STACKList the tasks in the stack Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print tasks using a Go template--no-resolveDo not map IDs to Names--no-truncDo not truncate output--orchestrator stringOrchestrator to use (swarm|kubernetes|all)-q, --quietOnly display task IDs
Usage:docker stack rm [OPTIONS] STACK [STACK...]Remove one or more stacks Aliases: rm, remove, down Options:--orchestrator stringOrchestrator to use (swarm|kubernetes|all)
Usage:docker stack services [OPTIONS] STACKList the services in the stack Options:-f, --filter filterFilter output based on conditions provided--format stringPretty-print services using a Go template--orchestrator stringOrchestrator to use (swarm|kubernetes|all)-q, --quietOnly display IDs
Usage: docker swarm COMMAND
Manage Swarm
Commands:
ca Display and rotate the root CA
init Initialize a swarm
join Join a swarm as a node and/or manager
join-token Manage join tokens
leave Leave the swarm
unlock Unlock swarm
unlock-key Manage the unlock key
update Update the swarm
Run 'docker swarm COMMAND --help' for more information on a command.
Usage:docker swarm ca [OPTIONS]Display and rotate the root CA Options:--ca-certpem-file Path to the PEM-formatted root CA certificate to use for the new cluster--ca-keypem-file Path to the PEM-formatted root CA key to use for the new cluster--cert-expiry durationValidity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)-d, --detachExit immediately instead of waiting for the root rotation to converge--external-caexternal-ca Specifications of one or more certificate signing endpoints-q, --quietSuppress progress output--rotateRotate the swarm CA - if no certificate or key are provided, new ones will be generated
Usage:docker swarm init [OPTIONS]Initialize a swarm Options:--advertise-addr stringAdvertised address (format:[:port]) --autolockEnable manager autolocking (requiring an unlock key to start a stopped manager)--availability stringAvailability of the node ("active"|"pause"|"drain") (default "active")--cert-expiry durationValidity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)--data-path-addr stringAddress or interface to use for data path traffic (format:) --data-path-port uint32Port number to use for data path traffic (1024 - 49151). If no value is set or is set to 0, the default port (4789) is used.--default-addr-pool ipNetSlicedefault address pool in CIDR format (default [])--default-addr-pool-mask-length uint32default address pool subnet mask length (default 24)--dispatcher-heartbeat durationDispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)--external-caexternal-ca Specifications of one or more certificate signing endpoints--force-new-clusterForce create a new cluster from current state--listen-addrnode-addr Listen address (format:[:port]) (default 0.0.0.0:2377) --max-snapshots uintNumber of additional Raft snapshots to retain--snapshot-interval uintNumber of log entries between Raft snapshots (default 10000)--task-history-limit intTask history retention limit (default 5)
Usage:docker swarm join [OPTIONS] HOST:PORTJoin a swarm as a node and/or manager Options:--advertise-addr stringAdvertised address (format:[:port]) --availability stringAvailability of the node ("active"|"pause"|"drain") (default "active")--data-path-addr stringAddress or interface to use for data path traffic (format:) --listen-addrnode-addr Listen address (format:[:port]) (default 0.0.0.0:2377) --token stringToken for entry into the swarm
Usage:docker swarm join-token [OPTIONS] (worker|manager)Manage join tokens Options:-q, --quietOnly display token--rotateRotate join token
Usage:docker swarm leave [OPTIONS]Leave the swarm Options:-f, --forceForce this node to leave the swarm, ignoring warnings
Usage: docker swarm unlock
Unlock swarm
Usage:docker swarm unlock-key [OPTIONS]Manage the unlock key Options:-q, --quietOnly display token--rotateRotate unlock key
Usage:docker swarm update [OPTIONS]Update the swarm Options:--autolockChange manager autolocking setting (true|false)--cert-expiry durationValidity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)--dispatcher-heartbeat durationDispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)--external-caexternal-ca Specifications of one or more certificate signing endpoints--max-snapshots uintNumber of additional Raft snapshots to retain--snapshot-interval uintNumber of log entries between Raft snapshots (default 10000)--task-history-limit intTask history retention limit (default 5)
Usage: docker system COMMAND
Manage Docker
Commands:
df Show docker disk usage
events Get real time events from the server
info Display system-wide information
prune Remove unused data
Run 'docker system COMMAND --help' for more information on a command.
Usage:docker system df [OPTIONS]Show docker disk usage Options:--format stringPretty-print images using a Go template-v, --verboseShow detailed information on space usage
Usage:docker system events [OPTIONS]Get real time events from the server Options:-f, --filter filterFilter output based on conditions provided--format stringFormat the output using the given Go template--since stringShow all events created since timestamp--until stringStream events until this timestamp
Usage:docker system info [OPTIONS]Display system-wide information Options:-f, --format stringFormat the output using the given Go template
Usage:docker system prune [OPTIONS]Remove unused data Options:-a, --allRemove all unused images not just dangling ones--filter filterProvide filter values (e.g. 'label== ') -f, --forceDo not prompt for confirmation--volumesPrune volumes
Usage: docker trust COMMAND
Manage trust on Docker images
Management Commands:
key Manage keys for signing Docker images
signer Manage entities who can sign Docker images
Commands:
inspect Return low-level information about keys and signatures
revoke Remove trust for an image
sign Sign an image
Run 'docker trust COMMAND --help' for more information on a command.
Usage:docker trust inspect IMAGE[:TAG] [IMAGE[:TAG]...]Return low-level information about keys and signatures Options:--prettyPrint the information in a human friendly format
Usage:docker trust revoke [OPTIONS] IMAGE[:TAG]Remove trust for an image Options:-y, --yesDo not prompt for confirmation
Usage:docker trust sign IMAGE:TAGSign an image Options:--localSign a locally tagged image
Usage: docker volume COMMAND
Manage volumes
Commands:
create Create a volume
inspect Display detailed information on one or more volumes
ls List volumes
prune Remove all unused local volumes
rm Remove one or more volumes
Run 'docker volume COMMAND --help' for more information on a command.
Usage:docker volume create [OPTIONS] [VOLUME]Create a volume Options:-d, --driver stringSpecify volume driver name (default "local")--label listSet metadata for a volume-o, --opt mapSet driver specific options (default map[])
Usage:docker volume inspect [OPTIONS] VOLUME [VOLUME...]Display detailed information on one or more volumes Options:-f, --format stringFormat the output using the given Go template
Usage:docker volume ls [OPTIONS]List volumes Aliases: ls, list Options:-f, --filter filterProvide filter values (e.g. 'dangling=true')--format stringPretty-print volumes using a Go template-q, --quietOnly display volume names
Usage:docker volume prune [OPTIONS]Remove all unused local volumes Options:--filter filterProvide filter values (e.g. 'label=
Usage:docker volume rm [OPTIONS] VOLUME [VOLUME...]Remove one or more volumes. You cannot remove a volume that is in use by a container. Aliases: rm, remove Examples: $ docker volume rm hello hello Options:-f, --forceForce the removal of one or more volumes











