Use disk-backed dind storage by default
This commit is contained in:
1 parent
6f2c451187
commit
44b3e4bda6
2 files changed
+15
-15
No files matched your search
@@ -158,24 +158,24 @@ scripts/workflow-resource.yml disk / memory / CPU stress
|
||||
The dind image comes from the gVisor Docker-in-gVisor example under
|
||||
`gvisor/images/basic/docker`.
|
||||
|
||||
By default, `start-dockerd.sh` mounts a RAM-backed tmpfs at `/var/lib/docker`:
|
||||
|
||||
```text
|
||||
DOCKER_TMPFS_SIZE=5G
|
||||
```
|
||||
|
||||
That is the gVisor-recommended path for Docker 29 overlayfs, but it limits
|
||||
image/build storage to 5 GiB.
|
||||
|
||||
To use the disk-backed `./dind-data` volume instead, uncomment:
|
||||
The default Compose configuration starts dind with:
|
||||
|
||||
```yaml
|
||||
command: --no-overlay
|
||||
```
|
||||
|
||||
The startup script then disables Docker 29's containerd snapshotter so it can
|
||||
fall back to a non-overlay storage path. Verify that the selected storage driver
|
||||
works inside your gVisor version before relying on large builds.
|
||||
This skips the RAM-backed tmpfs at `/var/lib/docker` and uses the disk-backed
|
||||
`./dind-data` volume instead, so image/build storage is not capped at a fixed
|
||||
tmpfs size. The startup script also disables Docker 29's containerd snapshotter
|
||||
for this mode.
|
||||
|
||||
If you prefer a bounded RAM-backed store, remove `command: --no-overlay` and set
|
||||
`DOCKER_TMPFS_SIZE` explicitly:
|
||||
|
||||
```yaml
|
||||
environment:
|
||||
DOCKER_TMPFS_SIZE: 5G
|
||||
```
|
||||
|
||||
## Networking details
|
||||
|
||||
|
||||
Reference in new issue
Block a user