From f988c68914165e053fab3b607d29dec47503afb9 Mon Sep 17 00:00:00 2001 From: Maria Bermudez Date: Thu, 28 Feb 2019 10:57:40 -0800 Subject: [PATCH] Update deploy.md Page edits and updating the example command with the verbose flag. --- docker-for-aws/deploy.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-for-aws/deploy.md b/docker-for-aws/deploy.md index 701fe8ba3b..41ddc52630 100644 --- a/docker-for-aws/deploy.md +++ b/docker-for-aws/deploy.md @@ -172,15 +172,15 @@ the docker command is automatically executed. ### Docker Stack deployment -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, ensure that your session is on one that has the stack 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 to a manager node via `scp` for example. You can then SSH into the manager node and run `docker stack deploy` with the `--compose-file` or `-c` option. See [docker stack deploy options](/engine/reference/commandline/stack_deploy/#options) for the list of different options. If you have multiple manager nodes, make sure you are logged in to the one with the stack file copy. For example: ```bash -docker stack deploy -c docker-compose.yml myapp +docker stack deploy --compose-file 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). +See [Docker voting app](https://github.com/docker/example-voting-app) for a good sample app to test stack deployments. By default, apps deployed with stacks do not have ports publicly exposed. Update port mappings for services, and Docker automatically wires up the underlying platform load balancers: