docker container

Manage containers

Subcommands

NameDescription
attachAttach local standard input, output, and error streams to a running container,
cpCopy files/folders between a container and the local filesystem
createCreate a new container
diffInspect changes to files or directories on a container's filesystem
execRun a command in a running container
exportExport a container's filesystem as a tar archive
inspectReturn low-level information on Docker objects
killKill one or more running containers
logsFetch the logs of a container
lsList containers
pausePause all processes within one or more containers
portList port mappings or a specific mapping for the container
pruneRemove all stopped containers
renameRename a container
restartRestart one or more containers
rmRemove one or more containers
runRun a command in a new container
startStart one or more stopped containers
statsDisplay a live stream of container(s) resource usage statistics
stopStop one or more running containers
topDisplay the running processes of a container
unpauseUnpause all processes within one or more containers
updateUpdate configuration of one or more containers
waitBlock until one or more containers stop, then print their exit codes