github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/docs/reference/commandline/stack_deploy.md (about)

     1  ---
     2  title: "stack deploy"
     3  description: "The stack deploy command description and usage"
     4  keywords: ["stack, deploy, up"]
     5  advisory: "experimental"
     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  # stack deploy (experimental)
    18  
    19  ```markdown
    20  Usage:  docker stack deploy [OPTIONS] STACK
    21  
    22  Create and update a stack from a Distributed Application Bundle (DAB)
    23  
    24  Aliases:
    25    deploy, up
    26  
    27  Options:
    28        --file   string   Path to a Distributed Application Bundle file (Default: STACK.dab)
    29        --help            Print usage
    30  ```
    31  
    32  Create and update a stack from a `dab` file on the swarm. This command
    33  has to be run targeting a manager node.
    34  
    35  ```bash
    36  $ docker stack deploy vossibility-stack
    37  Loading bundle from vossibility-stack.dab
    38  Creating service vossibility-stack_elasticsearch
    39  Creating service vossibility-stack_kibana
    40  Creating service vossibility-stack_logstash
    41  Creating service vossibility-stack_lookupd
    42  Creating service vossibility-stack_nsqd
    43  Creating service vossibility-stack_vossibility-collector
    44  ```
    45  
    46  You can verify that the services were correctly created:
    47  
    48  ```bash
    49  $ docker service ls
    50  ID            NAME                                     REPLICAS  IMAGE
    51  COMMAND
    52  29bv0vnlm903  vossibility-stack_lookupd                1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqlookupd
    53  4awt47624qwh  vossibility-stack_nsqd                   1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqd --data-path=/data --lookupd-tcp-address=lookupd:4160
    54  4tjx9biia6fs  vossibility-stack_elasticsearch          1 elasticsearch@sha256:12ac7c6af55d001f71800b83ba91a04f716e58d82e748fa6e5a7359eed2301aa
    55  7563uuzr9eys  vossibility-stack_kibana                 1 kibana@sha256:6995a2d25709a62694a937b8a529ff36da92ebee74bafd7bf00e6caf6db2eb03
    56  9gc5m4met4he  vossibility-stack_logstash               1 logstash@sha256:2dc8bddd1bb4a5a34e8ebaf73749f6413c101b2edef6617f2f7713926d2141fe logstash -f /etc/logstash/conf.d/logstash.conf
    57  axqh55ipl40h  vossibility-stack_vossibility-collector  1 icecrime/vossibility-collector@sha256:f03f2977203ba6253988c18d04061c5ec7aab46bca9dfd89a9a1fa4500989fba --config /config/config.toml --debug
    58  ```
    59  
    60  ## Related information
    61  
    62  * [stack config](stack_config.md)
    63  * [stack rm](stack_rm.md)
    64  * [stack services](stack_services.md)
    65  * [stack ps](stack_ps.md)
    66  * [stack ls](stack_ls.md)