github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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 # The Docker commands 9 10 This section contains reference information on using Docker's command line 11 client. Each command has a reference page along with samples. If you are 12 unfamiliar with the command line, you should start by reading about how to [Use 13 the Docker command line](cli.md). 14 15 You start the Docker daemon with the command line. How you start the daemon 16 affects your Docker containers. For that reason you should also make sure to 17 read the [`dockerd`](dockerd.md) reference page. 18 19 ## Commands by object 20 21 ### Docker management commands 22 23 | Command | Description | 24 |:--------|:-------------------------------------------------------------------| 25 | [dockerd](dockerd.md) | Launch the Docker daemon | 26 | [info](info.md) | Display system-wide information | 27 | [inspect](inspect.md)| Return low-level information on a container or image | 28 | [version](version.md) | Show the Docker version information | 29 30 31 ### Image commands 32 33 | Command | Description | 34 |:--------|:-------------------------------------------------------------------| 35 | [build](build.md) | Build an image from a Dockerfile | 36 | [commit](commit.md) | Create a new image from a container's changes | 37 | [history](history.md) | Show the history of an image | 38 | [images](images.md) | List images | 39 | [import](import.md) | Import the contents from a tarball to create a filesystem image | 40 | [load](load.md) | Load an image from a tar archive or STDIN | 41 | [image prune](image_prune.md) | Remove unused images | 42 | [rmi](rmi.md) | Remove one or more images | 43 | [save](save.md) | Save images to a tar archive | 44 | [tag](tag.md) | Tag an image into a repository | 45 46 ### Container commands 47 48 | Command | Description | 49 |:--------|:-------------------------------------------------------------------| 50 | [attach](attach.md) | Attach to a running container | 51 | [container prune](container_prune.md) | Remove all stopped containers | 52 | [cp](cp.md) | Copy files/folders from a container to a HOSTDIR or to STDOUT | 53 | [create](create.md) | Create a new container | 54 | [diff](diff.md) | Inspect changes on a container's filesystem | 55 | [events](events.md) | Get real time events from the server | 56 | [exec](exec.md) | Run a command in a running container | 57 | [export](export.md) | Export a container's filesystem as a tar archive | 58 | [kill](kill.md) | Kill a running container | 59 | [logs](logs.md) | Fetch the logs of a container | 60 | [pause](pause.md) | Pause all processes within a container | 61 | [port](port.md) | List port mappings or a specific mapping for the container | 62 | [ps](ps.md) | List containers | 63 | [rename](rename.md) | Rename a container | 64 | [restart](restart.md) | Restart a running container | 65 | [rm](rm.md) | Remove one or more containers | 66 | [run](run.md) | Run a command in a new container | 67 | [start](start.md) | Start one or more stopped containers | 68 | [stats](stats.md) | Display a live stream of container(s) resource usage statistics | 69 | [stop](stop.md) | Stop a running container | 70 | [top](top.md) | Display the running processes of a container | 71 | [unpause](unpause.md) | Unpause all processes within a container | 72 | [update](update.md) | Update configuration of one or more containers | 73 | [wait](wait.md) | Block until a container stops, then print its exit code | 74 75 ### Hub and registry commands 76 77 | Command | Description | 78 |:--------|:-------------------------------------------------------------------| 79 | [login](login.md) | Register or log in to a Docker registry | 80 | [logout](logout.md) | Log out from a Docker registry | 81 | [pull](pull.md) | Pull an image or a repository from a Docker registry | 82 | [push](push.md) | Push an image or a repository to a Docker registry | 83 | [search](search.md) | Search the Docker Hub for images | 84 85 ### Network and connectivity commands 86 87 | Command | Description | 88 |:--------|:-------------------------------------------------------------------| 89 | [network connect](network_connect.md) | Connect a container to a network | 90 | [network create](network_create.md) | Create a new network | 91 | [network disconnect](network_disconnect.md) | Disconnect a container from a network | 92 | [network inspect](network_inspect.md) | Display information about a network | 93 | [network ls](network_ls.md) | Lists all the networks the Engine `daemon` knows about | 94 | [network prune](network_prune.md) | Remove all unused networks | 95 | [network rm](network_rm.md) | Removes one or more networks | 96 97 ### Shared data volume commands 98 99 | Command | Description | 100 |:--------|:-------------------------------------------------------------------| 101 | [volume create](volume_create.md) | Creates a new volume where containers can consume and store data | 102 | [volume inspect](volume_inspect.md) | Display information about a volume | 103 | [volume ls](volume_ls.md) | Lists all the volumes Docker knows about | 104 | [volume prune](volume_prune.md) | Remove all unused local volumes | 105 | [volume rm](volume_rm.md) | Remove one or more volumes | 106 107 ### Swarm node commands 108 109 | Command | Description | 110 |:--------|:-------------------------------------------------------------------| 111 | [node demote](node_demote.md) | Demotes an existing manager so that it is no longer a manager | 112 | [node inspect](node_inspect.md) | Inspect a node in the swarm | 113 | [node ls](node_ls.md) | List nodes in the swarm | 114 | [node promote](node_promote.md) | Promote a node that is pending a promotion to manager | 115 | [node ps](node_ps.md) | List tasks running on one or more nodes | 116 | [node rm](node_rm.md) | Remove one or more nodes from the swarm | 117 | [node update](node_update.md) | Update attributes for a node | 118 119 ### Swarm management commands 120 121 | Command | Description | 122 |:--------|:-------------------------------------------------------------------| 123 | [swarm init](swarm_init.md) | Initialize a swarm | 124 | [swarm join](swarm_join.md) | Join a swarm as a manager node or worker node | 125 | [swarm leave](swarm_leave.md) | Remove the current node from the swarm | 126 | [swarm join-token](swarm_join_token.md) | Display or rotate join tokens | 127 | [swarm unlock](swarm_unlock.md) | Unlock swarm | 128 | [swarm unlock-key](swarm_unlock_key.md) | Manage the unlock key | 129 | [swarm update](swarm_update.md) | Update attributes of a swarm | 130 131 ### Swarm service commands 132 133 | Command | Description | 134 |:--------|:-------------------------------------------------------------------| 135 | [service create](service_create.md) | Create a new service | 136 | [service inspect](service_inspect.md) | Inspect a service | 137 | [service logs](service_logs.md) | Fetch the logs of a service or task | 138 | [service ls](service_ls.md) | List services in the swarm | 139 | [service ps](service_ps.md) | List the tasks of a service | 140 | [service rm](service_rm.md) | Remove a service from the swarm | 141 | [service scale](service_scale.md) | Set the number of replicas for the desired state of the service | 142 | [service update](service_update.md) | Update the attributes of a service | 143 144 ### Swarm secret commands 145 146 | Command | Description | 147 |:--------|:-------------------------------------------------------------------| 148 | [secret create](secret_create.md) | Create a secret from a file or STDIN as content | 149 | [secret inspect](service_inspect.md) | Inspect the specified secret | 150 | [secret ls](secret_ls.md) | List secrets in the swarm | 151 | [secret rm](secret_rm.md) | Remove the specified secrets from the swarm | 152 153 ### Swarm stack commands 154 155 | Command | Description | 156 |:--------|:-------------------------------------------------------------------| 157 | [stack deploy](stack_deploy.md) | Deploy a new stack or update an existing stack | 158 | [stack ls](stack_ls.md) | List stacks in the swarm | 159 | [stack ps](stack_ps.md) | List the tasks in the stack | 160 | [stack rm](stack_rm.md) | Remove the stack from the swarm | 161 | [stack services](stack_services.md) | List the services in the stack | 162 163 ### Plugin commands 164 165 | Command | Description | 166 |:--------|:-------------------------------------------------------------------| 167 | [plugin create](plugin_create.md) | Create a plugin from a rootfs and configuration | 168 | [plugin disable](plugin_disable.md) | Disable a plugin | 169 | [plugin enable](plugin_enable.md) | Enable a plugin | 170 | [plugin inspect](plugin_inspect.md) | Display detailed information on a plugin | 171 | [plugin install](plugin_install.md) | Install a plugin | 172 | [plugin ls](plugin_ls.md) | List plugins | 173 | [plugin push](plugin_push.md) | Push a plugin to a registry | 174 | [plugin rm](plugin_rm.md) | Remove a plugin | 175 | [plugin set](plugin_set.md) | Change settings for a plugin | 176 177 ### Context commands 178 | Command | Description | 179 |:--------|:-------------------------------------------------------------------| 180 | [context create](context_create.md) | Create a context | 181 | [context export](context_export.md) | Export a context | 182 | [context import](context_import.md) | Import a context | 183 | [context ls](context_ls.md) | List contexts | 184 | [context rm](context_rm.md) | Remove one or more contexts | 185 | [context update](context_update.md) | Update a context | 186 | [context use](context_use.md) | Set the current docker context | 187 | [context inspect](context_inspect.md) | Inspect one or more contexts | 188