Docker is an open-source engine that automates the deployment of any
application as a lightweight, portable, self-sufficient container that will
run virtually anywhere.
Docker containers can encapsulate any payload, and will run consistently on
and between virtually any server. The same container that a developer builds
and tests on a laptop will run at scale, in production*, on VMs, bare-metal
servers, OpenStack clusters, public instances, or combinations of the above.
docker is a client for interacting with the daemon (see dockerd(8)) through the CLI. The Docker CLI has over 30 commands. The commands are listed below and each has... docker-attach The docker attach command allows you to attach to a running container using the container's ID or name, either to view its ongoing output or to control it... docker-build This will read the Dockerfile from the directory specified in PATH. It also sends any other files and directories found in the current directory to the Docker... docker-commit Create a new image from an existing container specified by name or container ID. The new image will contain the contents of the container filesystem, excluding... docker-cp The docker cp utility copies the contents of SRC_PATH to the DEST_PATH. You can copy from the container's file system to the local machine or the reverse, from... docker-create Creates a writeable container layer over the specified image and prepares it for running the specified command. The container ID is then printed to STDOUT. This... docker-diff Inspect changes on a container's filesystem. You can use the full or shortened container ID or the container name set using docker run --name option. docker-events Get event information from the Docker daemon. Information can include historical information and real-time information. docker-exec Run a process in a running container. The command started using docker exec will only run while the container's primary process (PID 1) is running, and will not... docker-export Export the contents of a container's filesystem using the full or shortened container ID or container name. The output is exported to STDOUT and can be... docker-images This command lists the images stored in the local Docker repository. By default, intermediate images, used during builds, are not listed. Some of the output... docker-import Create a new filesystem image from the contents of a tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it. docker-info This command displays system wide information regarding the Docker installation. Information displayed includes the kernel version, number of containers and... docker-inspect This displays all the information available in Docker for a given container or image. By default, this will render all results in a JSON array. If the container... docker-kill The main process inside each container specified will be sent SIGKILL, or any signal specified with option --signal. docker-load Loads a tarred repository from a file or the standard input stream. Restores both images and tags. Write image names or IDs imported it standard output stream. docker-login Log in to a Docker Registry located on the specified SERVER. You can specify a URL or a hostname for the SERVER value. If you do not specify a SERVER, the... docker-logout Log out of a Docker Registry located on the specified SERVER. You can specify a URL or a hostname for the SERVER value. If you do not specify a SERVER, the... docker-logs The docker logs command batch-retrieves whatever logs are present for a container at the time of execution. This does not guarantee execution order when... docker-network-connect Connects a container to a network. You can connect a container by name or by ID. Once connected, the container can communicate with other containers in the same... docker-network-create Creates a new network. The DRIVER accepts bridge or overlay which are the built-in network drivers. If you have installed a third party or your own custom... docker-network-inspect Returns information about one or more networks. By default, this command renders all results in a JSON object. docker-network-rm Removes one or more networks by name or identifier. To remove a network, you must first disconnect any containers connected to it. docker-pause The docker pause command uses the cgroups freezer to suspend all processes in a container. Traditionally when suspending a process the SIGSTOP signal is used... docker-port List port mappings for the CONTAINER, or lookup the public-facing port that is NAT-ed to the PRIVATE_PORT docker-ps List the containers in the local repository. By default this shows only the running containers. docker-pull This command pulls down an image or a repository from a registry. If there is more than one image for a repository (e.g., fedora) then all images for that... docker-push Use docker push to share your images to the ⟨https://hub.docker.com⟩ registry or to a self-hosted one. Refer to docker-tag(1) for more information about valid... docker-rename Rename a container. Container may be running, paused or stopped. docker-rm docker rm will remove one or more containers from the host node. The container name or ID can be used. This does not remove images. You cannot remove a running... docker-rmi Removes one or more images from the host node. This does not remove images from a registry. You cannot remove an image of a running container unless you use the... docker-run Run a process in a new container. docker run starts a process with its own file system, its own networking, and its own isolated process tree. The IMAGE which... docker-save Produces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specified repo:tag. Stream to a file instead... docker-search Search Docker Hub for images that match the specified TERM. The table of images returned displays the name, description (truncated by default), number of stars... docker-stats Display a live stream of one or more containers' resource usage statistics docker-stop Stop a container (Send SIGTERM, and then SIGKILL after grace period) docker-tag Assigns a new alias to an image in a registry. An alias refers to the entire image name including the optional TAG after the ':'. docker-top Display the running process of the container. ps-OPTION can be any of the options you would pass to a Linux ps command. All displayed information is from host's... docker-unpause The docker unpause command uses the cgroups freezer to un-suspend all processes in a container. See the ⟨https://www.kernel.org/doc/Documentatio…⟩ for further... docker-update The docker update command dynamically updates container configuration. you can Use this command to prevent containers from consuming too many resources from... docker-version This command displays version information for both the Docker client and daemon. docker-wait Block until a container stops, then print its exit code. docker-config-json By default, the Docker command line stores its configuration files in a directory called .docker within your $HOME directory. Docker manages most of the files... Dockerfile A Dockerfile is a file that automates the steps of creating a Docker image. A Dockerfile is similar to a Makefile. dockerd dockerd is used for starting the Docker daemon(i.e., to command the daemon to manage images, containers etc.) So dockerd is a server, as a daemon. To run the... docker-lvm-plugin This plugin can be used to create lvm volumes of specified size, which can then be bind mounted into the container using docker run command. docker-novolume-plugin When a volume in provisioned via the VOLUME instruction in a Dockerfile or via docker run -v volumename, host's storage space is used. This could lead to an...