Add note about stack deploy for image pulls (#4815)

This commit is contained in:
Jim Galasyn 2017-10-05 15:01:51 -07:00 committed by GitHub
parent da0e5d2b38
commit 5698ef7c4f
2 changed files with 11 additions and 0 deletions

View File

@ -158,6 +158,13 @@ from the Compose file in play. For example, the manager node is running the
PostgreSQL container, as configured by setting `[node.role == manager]` as a
constraint in the `deploy` key for the `db` service.
## Pull images with stack deploy
Let `docker stack deploy` handle any image pulls for you, instead of using
`docker pull`. This way, your deployment won't try to pull from nodes that
are down. Also, when new nodes are added to the swarm, images are pulled
automatically.
## Cleanup
When you're all done, you can take down the entire stack by using `docker stack

View File

@ -95,6 +95,10 @@ keep image size small:
are only available to services rather than standalone containers. These
features allow you to keep your images as generic as possible and to avoid
storing sensitive data within the Docker images or containers themselves.
- Let `docker stack deploy` handle any image pulls for you, instead of using
`docker pull`. This way, your deployment won't try to pull from nodes
that are down. Also, when new nodes are added to the swarm, images are
pulled automatically.
There are limitations around sharing data amongst nodes of a swarm service.
If you use [Docker for AWS](/docker-for-aws/persistent-data-volumes.md) or