To list available commands, either run docker
with no parameters or execute
docker help
:
$ docker
Usage: docker COMMAND [arg...]
A self-sufficient runtime for linux containers.
...
attach
– Attach to a running containerbuild
– Build a container from Dockerfile via stdincommit
– Create a new image from a container’s changesdiff
– Inspect changes on a container’s filesystemexport
– Stream the contents of a container as a tar archivehistory
– Show the history of an imageimages
– List imagesimport
– Create a new filesystem image from the contents of a tarballinfo
– Display system-wide informationinspect
– Return low-level information on a containerkill
– Kill a running containerlogin
– Register or Login to the docker registry serverlogs
– Fetch the logs of a containerport
– Lookup the public-facing port which is NAT-ed to PRIVATE_PORTps
– List containerspull
– Pull an image or a repository from the docker registry serverpush
– Push an image or a repository to the docker registry serverrestart
– Restart a running containerrm
– Remove a containerrmi
– Remove an imagerun
– Run a command in a new containerstart
– Start a stopped containerstop
– Stop a running containertag
– Tag an image into a repositoryversion
– Show the docker version informationwait
– Block until a container stops, then print its exit code