Commit 12f96be 1 parent f0022aa commit 12f96be Copy full SHA for 12f96be
File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1431,6 +1431,18 @@ refer to it within the Compose file:
1431
1431
external:
1432
1432
name: actual-name-of-volume
1433
1433
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
+
1434
1446
### labels
1435
1447
1436
1448
Add metadata to containers using
You can’t perform that action at this time.
0 commit comments