Add host runtime config for dind xattr support

This commit is contained in:
agentbox committed 2026-11-05 14:19:09 +00:00
1 parent d899f86182
commit 4b55d6e402
2 files changed
+59 -1

No files matched your search

+12 -1
View File
@@ -212,7 +212,14 @@ filesystem path cannot set the `security.capability` xattr on files such as
`/usr/bin/ping`, which many Ubuntu runner images contain.
The disk-backed dind setup needs an overlay filestore to support those xattrs.
Add this to the host's `runsc-docker` runtime:
A host daemon configuration example with the required runtime change is included
at:
```text
host/daemon.json.example
```
The relevant entry is:
```json
"runsc-docker": {
@@ -225,6 +232,9 @@ Add this to the host's `runsc-docker` runtime:
}
```
Merge that runtime entry into the host's `/etc/docker/daemon.json`, then restart
the Docker daemon.
The Compose file mounts:
```text
@@ -292,5 +302,6 @@ runner/config.yaml
gvisor/images/basic/docker/Dockerfile
gvisor/images/basic/docker/start-dockerd.sh
dind-runsc/resolv.conf
host/daemon.json.example
scripts/workflow-*.yml
```
+47
View File
@@ -0,0 +1,47 @@
{
"default-runtime": "runsc",
"experimental": true,
"fixed-cidr-v6": "fd00:dead:beef:c0::/80",
"ip6tables": true,
"ipv6": true,
"runtimes": {
"runsc": {
"path": "/usr/bin/runsc"
},
"runsc-docker": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
"--net-raw",
"--allow-packet-socket-write",
"--overlay2=all:dir=/var/lib/gvisor-overlay"
]
},
"runsc-host": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
"--network=host"
]
},
"runsc-host-docker": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
"--net-raw",
"--allow-packet-socket-write",
"--network=host"
]
},
"runsc-host-socket": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
"--host-uds=all",
"--network=host"
]
},
"runsc-socket": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
"--host-uds=all"
]
}
}
}