mirror of https://github.com/docker/docs.git
Add note about stack deploy for image pulls (#4815)
This commit is contained in:
parent
da0e5d2b38
commit
5698ef7c4f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue