2016-10-14 22:30:36 +00:00
|
|
|
---
|
|
|
|
title: "stack deploy"
|
|
|
|
description: "The stack deploy command description and usage"
|
2016-11-03 22:48:30 +00:00
|
|
|
keywords: "stack, deploy, up"
|
2016-10-14 22:30:36 +00:00
|
|
|
advisory: "experimental"
|
|
|
|
---
|
2016-07-19 16:32:44 +00:00
|
|
|
|
2016-10-19 17:25:45 +00:00
|
|
|
<!-- This file is maintained within the docker/docker Github
|
|
|
|
repository at https://github.com/docker/docker/. Make all
|
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
2016-07-19 16:32:44 +00:00
|
|
|
# stack deploy (experimental)
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
Usage: docker stack deploy [OPTIONS] STACK
|
|
|
|
|
|
|
|
Create and update a stack from a Distributed Application Bundle (DAB)
|
|
|
|
|
|
|
|
Aliases:
|
|
|
|
deploy, up
|
|
|
|
|
|
|
|
Options:
|
2016-11-11 03:01:31 +00:00
|
|
|
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
|
|
|
|
--help Print usage
|
|
|
|
--with-registry-auth Send registry authentication details to swarm agents
|
2016-07-19 16:32:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Create and update a stack from a `dab` file on the swarm. This command
|
|
|
|
has to be run targeting a manager node.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker stack deploy vossibility-stack
|
|
|
|
Loading bundle from vossibility-stack.dab
|
|
|
|
Creating service vossibility-stack_elasticsearch
|
|
|
|
Creating service vossibility-stack_kibana
|
|
|
|
Creating service vossibility-stack_logstash
|
|
|
|
Creating service vossibility-stack_lookupd
|
|
|
|
Creating service vossibility-stack_nsqd
|
|
|
|
Creating service vossibility-stack_vossibility-collector
|
|
|
|
```
|
|
|
|
|
|
|
|
You can verify that the services were correctly created:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker service ls
|
2016-10-25 03:39:53 +00:00
|
|
|
ID NAME MODE REPLICAS IMAGE
|
|
|
|
29bv0vnlm903 vossibility-stack_lookupd replicated 1/1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662
|
|
|
|
4awt47624qwh vossibility-stack_nsqd replicated 1/1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662
|
|
|
|
4tjx9biia6fs vossibility-stack_elasticsearch replicated 1/1 elasticsearch@sha256:12ac7c6af55d001f71800b83ba91a04f716e58d82e748fa6e5a7359eed2301aa
|
|
|
|
7563uuzr9eys vossibility-stack_kibana replicated 1/1 kibana@sha256:6995a2d25709a62694a937b8a529ff36da92ebee74bafd7bf00e6caf6db2eb03
|
|
|
|
9gc5m4met4he vossibility-stack_logstash replicated 1/1 logstash@sha256:2dc8bddd1bb4a5a34e8ebaf73749f6413c101b2edef6617f2f7713926d2141fe
|
|
|
|
axqh55ipl40h vossibility-stack_vossibility-collector replicated 1/1 icecrime/vossibility-collector@sha256:f03f2977203ba6253988c18d04061c5ec7aab46bca9dfd89a9a1fa4500989fba
|
2016-07-19 16:32:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [stack config](stack_config.md)
|
2016-11-15 01:40:44 +00:00
|
|
|
* [stack ls](stack_ls.md)
|
|
|
|
* [stack ps](stack_ps.md)
|
2016-07-19 16:32:44 +00:00
|
|
|
* [stack rm](stack_rm.md)
|
2016-07-20 16:54:48 +00:00
|
|
|
* [stack services](stack_services.md)
|
2016-11-15 01:40:44 +00:00
|
|
|
* [deploy](deploy.md)
|