diff --git a/README.md b/README.md index 886674b..606a9b0 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/host/daemon.json.example b/host/daemon.json.example new file mode 100644 index 0000000..80f60ef --- /dev/null +++ b/host/daemon.json.example @@ -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" + ] + } + } +}