docker
Manage Docker containers and images. Some subcommands such as `container` and `image` have their own usage documentation.
More info →Subcommands (36)
Build an image from a Dockerfile.
This command is an alias of `docker container commit`.
Run and manage multi container Docker applications.
Manage Docker containers.
Switch between contexts to manage multiple Docker environments.
This command is an alias of `docker container cp`.
This command is an alias of `docker container diff`.
This command is an alias of `docker container exec`.
Manage Docker images. See also: `docker build`, `docker image pull`, `docker image rm`.
This command is an alias of `docker image ls`.
Return low-level information on Docker objects.
This command is an alias of `docker image load`.
Log into a Docker registry.
This command is an alias of `docker container logs`.
Create and manage machines running Docker.
Create and manage Docker networks.
Manage Docker Swarm nodes.
This command is an alias of `docker container ls`.
This command is an alias of `docker image pull`.
This command is an alias of `docker container rename`.
This command is an alias of `docker container rm`.
This command is an alias of `docker image rm`.
This command is an alias of `docker container run`.
This command is an alias of `docker image save`.
Search for Docker images on Docker Hub.
Manage Docker swarm secrets.
Manage the services on a Docker daemon.
This command is an alias of `slim`.
This command is an alias of `docker container start`.
This command is an alias of `docker container stats`.
A container orchestration tool.
Manage Docker data and display system-wide information.
This command is an alias of `docker image tag`.
This command is an alias of `docker container top`.
This command is an alias of `docker container update`.
Manage Docker volumes.
Options (10)
booleanList all Docker containers (running and stopped)
docker {{[ps|container ls]}} {{[-a|--all]}}-a, --allbooleanList all Docker containers (running and stopped)
docker {{[ps|container ls]}} {{[-a|--all]}}booleanStart a container from an image, with a custom name
docker {{[run|container run]}} --name {{container_name}} {{image}}booleanPull an image from a Docker registry
docker {{[pull|image pull]}} {{image}}booleanDisplay the list of already downloaded images
docker {{[images|image ls]}}booleanOpen an interactive tty with Bourne shell (`sh`) inside a running container
docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{container_name}} {{sh}}booleanOpen an interactive tty with Bourne shell (`sh`) inside a running container
docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{container_name}} {{sh}}booleanRemove stopped containers
docker {{[rm|container rm]}} {{container1 container2 ...}}booleanFetch and follow the logs of a container
docker {{[logs|container logs]}} {{[-f|--follow]}} {{container_name}}-f, --followbooleanFetch and follow the logs of a container
docker {{[logs|container logs]}} {{[-f|--follow]}} {{container_name}}Examples (8)
List all Docker containers (running and stopped)
docker [ps|container ls] [-a|--all]Start a container from an image, with a custom name
docker [run|container run] --name container_name imageStart or stop an existing container
docker container start|stop container_namePull an image from a Docker registry
docker [pull|image pull] imageDisplay the list of already downloaded images
docker [images|image ls]Open an interactive tty with Bourne shell (`sh`) inside a running container
Remove stopped containers
docker [rm|container rm] container1 container2 ...Fetch and follow the logs of a container
docker [logs|container logs] [-f|--follow] container_name