diff --git a/README.md b/README.md index b1c2501..c51601d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 71fd933..6082b90 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,13 +31,13 @@ services: runtime: runsc-docker environment: DOCKER_TLS_CERTDIR: "" - DOCKER_TMPFS_SIZE: 5G cap_add: - ALL volumes: - ./dind-data:/var/lib/docker - ./dind-runsc/resolv.conf:/etc/resolv.conf:ro - #command: --no-overlay + # Use the disk-backed dind-data volume instead of a RAM-backed tmpfs. + command: --no-overlay # No published TCP Docker API port. networks: - ci