Files
gitea-ci-in-gvisor/runner/docker-run.sh
T

10 lines
427 B
Bash

#!/usr/bin/env bash
set -eu
# Do not use the stock dind entrypoint here: it always adds a TCP listener.
# Jobs use host networking so they can resolve the "gitea" Compose service and
# reach the internet, which would also expose tcp://127.0.0.1:2375 to them.
# Keep the daemon on its private unix socket only.
find /run /var/run -iname 'docker*.pid' -delete 2>/dev/null || true
exec dockerd --host=unix:///var/run/docker.sock