github.com/olljanat/moby@v1.13.1/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 prune](volume_prune.md) | Remove all unused volumes                  |
   110  | [volume rm](volume_rm.md) | Remove one or more volumes                       |
   111  
   112  
   113  ### Swarm node commands
   114  
   115  | Command | Description                                                        |
   116  |:--------|:-------------------------------------------------------------------|
   117  | [node promote](node_promote.md) | Promote a node that is pending a promotion to manager |
   118  | [node demote](node_demote.md) | Demotes an existing manager so that it is no longer a manager |
   119  | [node inspect](node_inspect.md) | Inspect a node in the swarm                |
   120  | [node update](node_update.md) | Update attributes for a node                 |
   121  | [node ps](node_ps.md) | List tasks running on one or more nodes                         |
   122  | [node ls](node_ls.md) | List nodes in the swarm                              |
   123  | [node rm](node_rm.md) | Remove one or more nodes from the swarm                         |
   124  
   125  ### Swarm swarm commands
   126  
   127  | Command | Description                                                        |
   128  |:--------|:-------------------------------------------------------------------|
   129  | [swarm init](swarm_init.md) | Initialize a swarm                             |
   130  | [swarm join](swarm_join.md) | Join a swarm as a manager node or worker node  |
   131  | [swarm leave](swarm_leave.md) | Remove the current node from the swarm       |
   132  | [swarm update](swarm_update.md) | Update attributes of a swarm               |
   133  | [swarm join-token](swarm_join_token.md) | Display or rotate join tokens      |
   134  
   135  ### Swarm service commands
   136  
   137  | Command | Description                                                        |
   138  |:--------|:-------------------------------------------------------------------|
   139  | [service create](service_create.md) | Create a new service                   |
   140  | [service inspect](service_inspect.md) | Inspect a service                    |
   141  | [service ls](service_ls.md) | List services in the swarm                     |
   142  | [service rm](service_rm.md) | Remove a service from the swarm                |
   143  | [service scale](service_scale.md) | Set the number of replicas for the desired state of the service |
   144  | [service ps](service_ps.md) | List the tasks of a service              |
   145  | [service update](service_update.md)  | Update the attributes of a service    |
   146  
   147  ### Swarm secret commands
   148  
   149  | Command | Description                                                        |
   150  |:--------|:-------------------------------------------------------------------|
   151  | [secret create](secret_create.md) | Create a secret from a file or STDIN as content |
   152  | [secret inspect](service_inspect.md) | Inspect the specified secret          |
   153  | [secret ls](secret_ls.md) | List secrets in the swarm                        |
   154  | [secret rm](secret_rm.md) | Remove the specified secrets from the swarm      |
   155  
   156  ### Swarm stack commands
   157  
   158  | Command | Description                                                        |
   159  |:--------|:-------------------------------------------------------------------|
   160  | [stack deploy](stack_deploy.md) | Deploy a new stack or update an existing stack |
   161  | [stack ls](stack_ls.md) | List stacks in the swarm                           |
   162  | [stack ps](stack_ps.md) | List the tasks in the stack                        |
   163  | [stack rm](stack_rm.md) | Remove the stack from the swarm                    |
   164  | [stack services](stack_services.md) | List the services in the stack         |
   165  
   166  ### Plugin commands
   167  
   168  | Command | Description                                                        |
   169  |:--------|:-------------------------------------------------------------------|
   170  | [plugin create](plugin_create.md) | Create a plugin from a rootfs and configuration |
   171  | [plugin disable](plugin_disable.md) | Disable a plugin                       |
   172  | [plugin enbale](plugin_enable.md)  | Enable a plugin                         |
   173  | [plugin inspect](plugin_inspect.md) | Display detailed information on a plugin |
   174  | [plugin install](plugin_install.md) | Install a plugin                       |
   175  | [plugin ls](plugin_ls.md) | List plugins                                     |
   176  | [plugin push](plugin_push.md) | Push a plugin to a registry                  |
   177  | [plugin rm](plugin_rm.md) | Remove a plugin                                  |
   178  | [plugin set](plugin_set.md)  | Change settings for a plugin                  |