Skip to content

Commit d11559a

Browse files
committed
Enable nodes' Docker's use of overlay2 storage driver, by default
- Configure a file-backed disk stored in the container's overlayfs
1 parent b84b166 commit d11559a

File tree

1 file changed

+8
-2
lines changed
  • tests/00-http-docker-swarm

1 file changed

+8
-2
lines changed

tests/00-http-docker-swarm/test

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,14 @@ for n in $(seq 1 $NODES)
113113
do
114114
log -n "Launching RunCVM node $n/$NODES ... "
115115

116-
diskopt="--mount=type=volume,src=$NODE$n,dst=/var/lib/docker"
117-
# diskopt="--mount=type=volume,src=$NODE$n,dst=/disks --env=RUNCVM_DISKS=/disks/disk1,/var/lib/docker,ext4,1G"
116+
# Enables Docker's use of overlay2 storage driver in a file-backed disk stored in a dedicated Docker volume
117+
# diskopt="--mount=type=volume,src=$NODE$n,dst=/disks --env=RUNCVM_DISKS=/disks/disk1,/var/lib/docker,ext4,500M"
118+
119+
# Docker will fall back to using the vfs storage driver, as it detects /var/lib/docker is an overlay2 fs.
120+
# diskopt="--mount=type=volume,src=$NODE$n,dst=/var/lib/docker"
121+
122+
# Enables Docker's use of overlay2 storage driver in a file-backed disk stored in the container's overlayfs
123+
diskopt="--env=RUNCVM_DISKS=/disks/disk1,/var/lib/docker,ext4,500M"
118124

119125
# The swarm volume, mounted at /swarm within the RunCVM VMs, will be used to share swarm info
120126
# among the nodes.

0 commit comments

Comments
 (0)