Skip to content

Commit 12f96be

Browse files
added note on external volumes with docker stack deploy (docker#3541)
Signed-off-by: Victoria Bialas <[email protected]>
1 parent f0022aa commit 12f96be

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

compose/compose-file/index.md

+12
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,18 @@ refer to it within the Compose file:
14311431
external:
14321432
name: actual-name-of-volume
14331433

1434+
> External volumes are always created with docker stack deploy
1435+
>
1436+
External volumes that do not exist _will be created_ if you use [docker stack
1437+
deploy](#deploy) to launch the app in [swarm mode](/engine/swarm/index.md)
1438+
(instead of [docker compose up](/compose/reference/up.md)). In swarm mode, a
1439+
volume is automatically created when it is defined by a service. As service
1440+
tasks are scheduled on new nodes,
1441+
[swarmkit](https://github.com/docker/swarmkit/blob/master/README.md) creates the
1442+
volume on the local node. To learn more, see
1443+
[moby/moby#29976](https://github.com/moby/moby/issues/29976).
1444+
{: .note-vanilla}
1445+
14341446
### labels
14351447

14361448
Add metadata to containers using

0 commit comments

Comments
 (0)