Docker Commands

Here you can find the list of all the Docker commands and an explanation on how to use them.

Attach local standard input, output, and error streams to a running container.
docker attach [OPTIONS] CONTAINER

Build an image from a Dockerfile.

Manage builds.

Manage checkpoints.

Create a new image from a container’s changes.

Manage Docker configs.

Manage containers.

Manage contexts.

Copy files/folders between a container and the local filesystem.

Create a new container.

Inspect changes to files or directories on a container’s filesystem.

Get real time events from the server.

Run a command in a running container.

Export a container’s filesystem as a tar archive.

Show the history of an image.

Manage images.

List images.

Import the contents from a tarball to create a filesystem image.

Display system-wide information.

Return low-level information on Docker objects.

Kill one or more running containers.

Load an image from a tar archive or STDIN.

Log in to a Docker registry.

Log out from a Docker registry.

Fetch the logs of a container.

Manage Docker image manifests and manifest lists.

Manage networks.

Manage Swarm nodes.

Pause all processes within one or more containers.

Manage plugins.

List port mappings or a specific mapping for the container.

List containers.

Pull an image or a repository from a registry.

Push an image or a repository to a registry.

Rename a container.

Restart one or more containers.

Remove one or more containers.

Remove one or more images.

Run a command in a new container.

Save one or more images to a tar archive (streamed to STDOUT by default).

Search the Docker Hub for images

Manage Docker secrets.

Manage services.

Manage Docker stacks.

Start one or more stopped containers.

Display a live stream of container(s) resource usage statistics.

Stop one or more running containers.

Manage Swarm.

Manage Docker.

Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE.

Display the running processes of a container.

Manage trust on Docker images.

Unpause all processes within one or more containers.

Update configuration of one or more containers.

Show the Docker version information.

Manage volumes.

Block until one or more containers stop, then print their exit codes.