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