Hey guys, I have huge machine and using dagger docker with some volume mounts. exec command looks like this:
/usr/bin/docker run --rm --name dagger-engine --security-opt seccomp=unconfined --privileged -v /etc/dagger/engine.json:/etc/dagger/engine.json -v /etc/dagger/engine.toml:/etc/dagger/engine.toml -v /run/dagger-dagger:/run/dagger -v /var/lib/docker/dagger-cache:/var/lib/dagger registry.dagger.io/engine:v0.19.7
Mainly mounting cache, socket, and configurations to control the engine. My mounted configurations:
{
"registries": {
"docker.io": {
"mirrors": ["mirror.gcr.io"]
}
},
"gc": {
"enabled": true,
"maxUsedSpace": "300GB"
}
}
and
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
[worker.oci]
gc = true
maxUsedSpace = "300GB"
Registry configuration seems to work fine, but other GC does not work. I have limited the disk usage to 300GB of cache but from disk usage I do see that Im using whatever disk size is mounted + it just fills the disk and fails silently - like some continer failed to create or similar.
In attached picture disk size creep can be seen, this disk is 1.1 TB in size, and it does not respect any provided values