github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/docs/reference/commandline/index.md (about) 1 --- 2 title: "Docker commands" 3 description: "Docker's CLI command description and usage" 4 keywords: ["Docker, Docker documentation, CLI, command line"] 5 identifier: "smn_cli_guide" 6 --- 7 8 <!-- This file is maintained within the docker/docker Github 9 repository at https://github.com/docker/docker/. Make all 10 pull requests against that repo. If you see this file in 11 another repository, consider it read-only there, as it will 12 periodically be overwritten by the definitive file. Pull 13 requests which include edits to this file in other repositories 14 will be rejected. 15 --> 16 17 # The Docker commands 18 19 This section contains reference information on using Docker's command line 20 client. Each command has a reference page along with samples. If you are 21 unfamiliar with the command line, you should start by reading about how to [Use 22 the Docker command line](cli.md). 23 24 You start the Docker daemon with the command line. How you start the daemon 25 affects your Docker containers. For that reason you should also make sure to 26 read the [`dockerd`](dockerd.md) reference page. 27 28 ### Docker management commands 29 30 | Command | Description | 31 |:--------|:-------------------------------------------------------------------| 32 | [dockerd](dockerd.md) | Launch the Docker daemon | 33 | [info](info.md) | Display system-wide information | 34 | [inspect](inspect.md)| Return low-level information on a container or image | 35 | [version](version.md) | Show the Docker version information | 36 37 38 ### Image commands 39 40 | Command | Description | 41 |:--------|:-------------------------------------------------------------------| 42 | [build](build.md) | Build an image from a Dockerfile | 43 | [commit](commit.md) | Create a new image from a container's changes | 44 | [history](history.md) | Show the history of an image | 45 | [images](images.md) | List images | 46 | [import](import.md) | Import the contents from a tarball to create a filesystem image | 47 | [load](load.md) | Load an image from a tar archive or STDIN | 48 | [rmi](rmi.md) | Remove one or more images | 49 | [save](save.md) | Save images to a tar archive | 50 | [tag](tag.md) | Tag an image into a repository | 51 52 ### Container commands 53 54 | Command | Description | 55 |:--------|:-------------------------------------------------------------------| 56 | [attach](attach.md) | Attach to a running container | 57 | [cp](cp.md) | Copy files/folders from a container to a HOSTDIR or to STDOUT | 58 | [create](create.md) | Create a new container | 59 | [diff](diff.md) | Inspect changes on a container's filesystem | 60 | [events](events.md) | Get real time events from the server | 61 | [exec](exec.md) | Run a command in a running container | 62 | [export](export.md) | Export a container's filesystem as a tar archive | 63 | [kill](kill.md) | Kill a running container | 64 | [logs](logs.md) | Fetch the logs of a container | 65 | [pause](pause.md) | Pause all processes within a container | 66 | [port](port.md) | List port mappings or a specific mapping for the container | 67 | [ps](ps.md) | List containers | 68 | [rename](rename.md) | Rename a container | 69 | [restart](restart.md) | Restart a running container | 70 | [rm](rm.md) | Remove one or more containers | 71 | [run](run.md) | Run a command in a new container | 72 | [start](start.md) | Start one or more stopped containers | 73 | [stats](stats.md) | Display a live stream of container(s) resource usage statistics | 74 | [stop](stop.md) | Stop a running container | 75 | [top](top.md) | Display the running processes of a container | 76 | [unpause](unpause.md) | Unpause all processes within a container | 77 | [update](update.md) | Update configuration of one or more containers | 78 | [wait](wait.md) | Block until a container stops, then print its exit code | 79 80 ### Hub and registry commands 81 82 | Command | Description | 83 |:--------|:-------------------------------------------------------------------| 84 | [login](login.md) | Register or log in to a Docker registry | 85 | [logout](logout.md) | Log out from a Docker registry | 86 | [pull](pull.md) | Pull an image or a repository from a Docker registry | 87 | [push](push.md) | Push an image or a repository to a Docker registry | 88 | [search](search.md) | Search the Docker Hub for images | 89 90 ### Network and connectivity commands 91 92 | Command | Description | 93 |:--------|:-------------------------------------------------------------------| 94 | [network connect](network_connect.md) | Connect a container to a network | 95 | [network create](network_create.md) | Create a new network | 96 | [network disconnect](network_disconnect.md) | Disconnect a container from a network | 97 | [network inspect](network_inspect.md) | Display information about a network | 98 | [network ls](network_ls.md) | Lists all the networks the Engine `daemon` knows about | 99 | [network rm](network_rm.md) | Removes one or more networks | 100 101 102 ### Shared data volume commands 103 104 | Command | Description | 105 |:--------|:-------------------------------------------------------------------| 106 | [volume create](volume_create.md) | Creates a new volume where containers can consume and store data | 107 | [volume inspect](volume_inspect.md) | Display information about a volume | 108 | [volume ls](volume_ls.md) | Lists all the volumes Docker knows about | 109 | [volume rm](volume_rm.md) | Remove one or more volumes | 110 111 112 ### Swarm node commands 113 114 | Command | Description | 115 |:--------|:-------------------------------------------------------------------| 116 | [node promote](node_promote.md) | Promote a node that is pending a promotion to manager | 117 | [node demote](node_demote.md) | Demotes an existing manager so that it is no longer a manager | 118 | [node inspect](node_inspect.md) | Inspect a node in the swarm | 119 | [node update](node_update.md) | Update attributes for a node | 120 | [node ps](node_ps.md) | List tasks running on one or more nodes | 121 | [node ls](node_ls.md) | List nodes in the swarm | 122 | [node rm](node_rm.md) | Remove one or more nodes from the swarm | 123 124 ### Swarm swarm commands 125 126 | Command | Description | 127 |:--------|:-------------------------------------------------------------------| 128 | [swarm init](swarm_init.md) | Initialize a swarm | 129 | [swarm join](swarm_join.md) | Join a swarm as a manager node or worker node | 130 | [swarm leave](swarm_leave.md) | Remove the current node from the swarm | 131 | [swarm update](swarm_update.md) | Update attributes of a swarm | 132 | [swarm join-token](swarm_join_token.md) | Display or rotate join tokens | 133 134 ### Swarm service commands 135 136 | Command | Description | 137 |:--------|:-------------------------------------------------------------------| 138 | [service create](service_create.md) | Create a new service | 139 | [service inspect](service_inspect.md) | Inspect a service | 140 | [service ls](service_ls.md) | List services in the swarm | 141 | [service rm](service_rm.md) | Remove a service from the swarm | 142 | [service scale](service_scale.md) | Set the number of replicas for the desired state of the service | 143 | [service ps](service_ps.md) | List the tasks of a service | 144 | [service update](service_update.md) | Update the attributes of a service |