Containers

Useful command to stop all containers

docker stop $(docker ps -a -q)

Useful command to remove all containers

docker rm $(docker ps -a -q)
CommandDescription
docker containerManage containers.
docker container attachAttach local standard input, output, and error streams to a running container.
docker container commitCreate a new image from a container's changes.
docker container createCreate a new container.
docker container diffInspect changes to files or directories on a container's filesystem.
docker container execExecute a command in a running container.
docker container exportExport a container's filesystem as a tar archive.
docker container inspectDisplay detailed information on one or more containers.
docker container killForce stop a running container.
docker container logsFetch the logs of a container.
docker container lsList containers.
docker container pausePause all processes within a container.
docker container portList port mappings or a specific mapping for the container.
docker container pruneRemove all stopped containers.
docker container renameRename a container.
docker container restartRestart one or more containers.
docker container rmRemove one or more containers.
docker container runRun a command in a new container.
docker container startStart one or more stopped containers.
docker container statsDisplay a live stream of container(s) resource usage statistics.
docker container stopStop one or more running containers.
docker container topDisplay the running processes of a container.
docker container unpauseUnpause all processes within a container.
docker container updateUpdate resource configs of one or more containers.
docker container waitBlock until a container stops, then print its exit code.
docker container pruneRemove all stopped containers.