github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/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  | [image prune](image_prune.md) | Remove unused images                         |
    49  | [rmi](rmi.md) | Remove one or more images                                    |
    50  | [save](save.md) | Save images to a tar archive                               |
    51  | [tag](tag.md) | Tag an image into a repository                               |
    52  
    53  ### Container commands
    54  
    55  | Command | Description                                                        |
    56  |:--------|:-------------------------------------------------------------------|
    57  | [attach](attach.md) | Attach to a running container                          |
    58  | [container prune](container_prune.md) | Remove all stopped containers        |
    59  | [cp](cp.md) | Copy files/folders from a container to a HOSTDIR or to STDOUT  |
    60  | [create](create.md) | Create a new container                                 |
    61  | [diff](diff.md) | Inspect changes on a container's filesystem                |
    62  | [events](events.md) | Get real time events from the server                   |
    63  | [exec](exec.md) | Run a command in a running container                       |
    64  | [export](export.md) | Export a container's filesystem as a tar archive       |
    65  | [kill](kill.md) | Kill a running container                                   |
    66  | [logs](logs.md) | Fetch the logs of a container                              |
    67  | [pause](pause.md) | Pause all processes within a container                   |
    68  | [port](port.md) | List port mappings or a specific mapping for the container |
    69  | [ps](ps.md) | List containers                                                |
    70  | [rename](rename.md) | Rename a container                                     |
    71  | [restart](restart.md) | Restart a running container                          |
    72  | [rm](rm.md) | Remove one or more containers                                  |
    73  | [run](run.md) | Run a command in a new container                             |
    74  | [start](start.md) | Start one or more stopped containers                     |
    75  | [stats](stats.md) | Display a live stream of container(s) resource usage  statistics |
    76  | [stop](stop.md) | Stop a running container                                   |
    77  | [top](top.md) | Display the running processes of a container                 |
    78  | [unpause](unpause.md) | Unpause all processes within a container             |
    79  | [update](update.md) | Update configuration of one or more containers         |
    80  | [wait](wait.md) | Block until a container stops, then print its exit code    |
    81  
    82  ### Hub and registry commands
    83  
    84  | Command | Description                                                        |
    85  |:--------|:-------------------------------------------------------------------|
    86  | [login](login.md) | Register or log in to a Docker registry                  |
    87  | [logout](logout.md) | Log out from a Docker registry                         |
    88  | [pull](pull.md) | Pull an image or a repository from a Docker registry       |
    89  | [push](push.md) | Push an image or a repository to a Docker registry         |
    90  | [search](search.md) | Search the Docker Hub for images                       |
    91  
    92  ### Network and connectivity commands
    93  
    94  | Command | Description                                                        |
    95  |:--------|:-------------------------------------------------------------------|
    96  | [network connect](network_connect.md) | Connect a container to a network     |
    97  | [network create](network_create.md) | Create a new network                   |
    98  | [network disconnect](network_disconnect.md) | Disconnect a container from a network |
    99  | [network inspect](network_inspect.md) | Display information about a network  |
   100  | [network ls](network_ls.md) | Lists all the networks the Engine `daemon` knows about |
   101  | [network prune](network_prune.md) | Remove all unused networks               |
   102  | [network rm](network_rm.md) | Removes one or more networks                   |
   103  
   104  ### Shared data volume commands
   105  
   106  | Command | Description                                                        |
   107  |:--------|:-------------------------------------------------------------------|
   108  | [volume create](volume_create.md) | Creates a new volume where containers can consume and store data |
   109  | [volume inspect](volume_inspect.md) | Display information about a volume     |
   110  | [volume ls](volume_ls.md) | Lists all the volumes Docker knows about         |
   111  | [volume prune](volume_prune.md) | Remove all unused volumes                  |
   112  | [volume rm](volume_rm.md) | Remove one or more volumes                       |
   113  
   114  ### Swarm node commands
   115  
   116  | Command | Description                                                        |
   117  |:--------|:-------------------------------------------------------------------|
   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 ls](node_ls.md) | List nodes in the swarm                              |
   121  | [node promote](node_promote.md) | Promote a node that is pending a promotion to manager |
   122  | [node ps](node_ps.md) | List tasks running on one or more nodes                         |
   123  | [node rm](node_rm.md) | Remove one or more nodes from the swarm                         |
   124  | [node update](node_update.md) | Update attributes for a node                 |
   125  
   126  ### Swarm swarm commands
   127  
   128  | Command | Description                                                        |
   129  |:--------|:-------------------------------------------------------------------|
   130  | [swarm init](swarm_init.md) | Initialize a swarm                             |
   131  | [swarm join](swarm_join.md) | Join a swarm as a manager node or worker node  |
   132  | [swarm leave](swarm_leave.md) | Remove the current node from the swarm       |
   133  | [swarm join-token](swarm_join_token.md) | Display or rotate join tokens      |
   134  | [swarm unlock](swarm_unlock.md) | Unlock swarm                               |
   135  | [swarm unlock-key](swarm_unlock_key.md) | Manage the unlock key              |
   136  | [swarm update](swarm_update.md) | Update attributes of a swarm               |
   137  
   138  ### Swarm service commands
   139  
   140  | Command | Description                                                        |
   141  |:--------|:-------------------------------------------------------------------|
   142  | [service create](service_create.md) | Create a new service                   |
   143  | [service inspect](service_inspect.md) | Inspect a service                    |
   144  | [service logs](service_logs.md)  | Fetch the logs of a service               |
   145  | [service ls](service_ls.md) | List services in the swarm                     |
   146  | [service ps](service_ps.md) | List the tasks of a service              |
   147  | [service rm](service_rm.md) | Remove a service from the swarm                |
   148  | [service scale](service_scale.md) | Set the number of replicas for the desired state of the service |
   149  | [service update](service_update.md)  | Update the attributes of a service    |
   150  
   151  ### Swarm secret commands
   152  
   153  | Command | Description                                                        |
   154  |:--------|:-------------------------------------------------------------------|
   155  | [secret create](secret_create.md) | Create a secret from a file or STDIN as content |
   156  | [secret inspect](service_inspect.md) | Inspect the specified secret          |
   157  | [secret ls](secret_ls.md) | List secrets in the swarm                        |
   158  | [secret rm](secret_rm.md) | Remove the specified secrets from the swarm      |
   159  
   160  ### Swarm stack commands
   161  
   162  | Command | Description                                                        |
   163  |:--------|:-------------------------------------------------------------------|
   164  | [stack deploy](stack_deploy.md) | Deploy a new stack or update an existing stack |
   165  | [stack ls](stack_ls.md) | List stacks in the swarm                           |
   166  | [stack ps](stack_ps.md) | List the tasks in the stack                        |
   167  | [stack rm](stack_rm.md) | Remove the stack from the swarm                    |
   168  | [stack services](stack_services.md) | List the services in the stack         |
   169  
   170  ### Plugin commands
   171  
   172  | Command | Description                                                        |
   173  |:--------|:-------------------------------------------------------------------|
   174  | [plugin create](plugin_create.md) | Create a plugin from a rootfs and configuration |
   175  | [plugin disable](plugin_disable.md) | Disable a plugin                       |
   176  | [plugin enbale](plugin_enable.md)  | Enable a plugin                         |
   177  | [plugin inspect](plugin_inspect.md) | Display detailed information on a plugin |
   178  | [plugin install](plugin_install.md) | Install a plugin                       |
   179  | [plugin ls](plugin_ls.md) | List plugins                                     |
   180  | [plugin push](plugin_push.md) | Push a plugin to a registry                  |
   181  | [plugin rm](plugin_rm.md) | Remove a plugin                                  |
   182  | [plugin set](plugin_set.md)  | Change settings for a plugin                  |