From 032042651b4d6e66f79bc367f8ebf2da478b0d8b Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Wed, 13 Sep 2017 14:53:52 -0700 Subject: [PATCH] Add info about stacks for AWS and Azure docs (#4620) --- docker-for-aws/deploy.md | 22 ++++++++++------------ docker-for-azure/deploy.md | 14 ++++++++++---- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/docker-for-aws/deploy.md b/docker-for-aws/deploy.md index ce4f5baef1..e59d897502 100644 --- a/docker-for-aws/deploy.md +++ b/docker-for-aws/deploy.md @@ -170,21 +170,19 @@ command. The global-mode service also guarantees that when a new node is added to the cluster or during upgrades, a new task is executed on that node and hence the docker command will be automatically executed. -### Distributed Application Bundles +### Docker Stack deployment -To deploy complex multi-container apps, you can use [distributed application -bundles](/compose/bundles.md). You can either run `docker deploy` to deploy a -bundle on your machine over an SSH tunnel, or copy the bundle (for example using -`scp`) to a manager node, SSH into the manager and then run `docker deploy` (if -you have multiple managers, you have to ensure that your session is on one that -has the bundle file). +To deploy complex multi-container apps, you can use the `docker stack deploy` command. You can either deploy a bundle on your machine over an SSH tunnel, or copy the `docker-compose.yml` file (for example using `scp`) to a manager node, SSH into the manager and then run `docker stack deploy` (if you have multiple managers, you have to ensure that your session is on one that has the stack file). -A good sample app to test application bundles is the [Docker voting -app](https://github.com/docker/example-voting-app). +For example: -By default, apps deployed with bundles do not have ports publicly exposed. -Update port mappings for services, and Docker will automatically wire up the -underlying platform load balancers: +```bash +docker stack deploy -f docker-compose.yml myapp +``` + +A good sample app to test deployment of stacks is the [Docker voting app](https://github.com/docker/example-voting-app). + +By default, apps deployed with stacks do not have ports publicly exposed. Update port mappings for services, and Docker will automatically wire up the underlying platform load balancers: docker service update --publish-add 80:80 diff --git a/docker-for-azure/deploy.md b/docker-for-azure/deploy.md index 09004e9339..736de671c9 100644 --- a/docker-for-azure/deploy.md +++ b/docker-for-azure/deploy.md @@ -156,13 +156,19 @@ Example : `swarm-exec docker plugin install --grant-all-permissions mavenugo/tes This tool internally makes use of docker global-mode service that runs a task on each of the nodes in the cluster. This task in turn executes your docker command. The global-mode service also guarantees that when a new node is added to the cluster or during upgrades, a new task is executed on that node and hence the docker command will be automatically executed. -### Distributed Application Bundles +### Docker Stack deployment -To deploy complex multi-container apps, you can use [distributed application bundles](https://github.com/moby/moby/blob/master/experimental/docker-stacks-and-bundles.md). You can either run `docker deploy` to deploy a bundle on your machine over an SSH tunnel, or copy the bundle (for example using `scp`) to a manager node, SSH into the manager and then run `docker deploy` (if you have multiple managers, you have to ensure that your session is on one that has the bundle file). +To deploy complex multi-container apps, you can use the `docker stack deploy` command. You can either deploy a bundle on your machine over an SSH tunnel, or copy the `docker-compose.yml` file (for example using `scp`) to a manager node, SSH into the manager and then run `docker stack deploy` (if you have multiple managers, you have to ensure that your session is on one that has the stack file). -A good sample app to test application bundles is the [Docker voting app](https://github.com/docker/example-voting-app). +For example: -By default, apps deployed with bundles do not have ports publicly exposed. Update port mappings for services, and Docker will automatically wire up the underlying platform load balancers: +```bash +docker stack deploy -f docker-compose.yml myapp +``` + +A good sample app to test deployment of stacks is the [Docker voting app](https://github.com/docker/example-voting-app). + +By default, apps deployed with stacks do not have ports publicly exposed. Update port mappings for services, and Docker will automatically wire up the underlying platform load balancers: docker service update --publish-add 80:80