Closed mannp closed 10 months ago
The error output you pasted looks incomplete. It misses the error message directly after the line Starting Docker engine (rootless)
, something like:
2023-10-02 12:07:29 INFO [/opt/run.sh:41] Starting Docker engine (rootless)...
mkdir: cannot create directory '/data/.config': Permission denied
12:07:29 Error - exited with status 1 in [/opt/run.sh] at line 45:
42 export DOCKER_HOST=unix://$HOME/.docker/run/docker.sock
43 if [ ! -f $HOME/.config/docker/daemon.json ]; then
44 # workaround for "Not using native diff for overlay2, this may cause degraded performance for building images: running in a user namespace storage-driver=overlay2"
45 mkdir -p $HOME/.config/docker
46 echo '{"storage-driver":"fuse-overlayfs"}' > $HOME/.config/docker/daemon.json
47 fi
48
There is no error message, but the docker fails to start.
I have included all that docker reports in docker logs
I note that nothing is created in the /data/ directory in persistent storage though.
Without the error message it is difficult to say what is happening.
From the incomplete log output you get I would guess this is the offending command: https://github.com/vegardit/docker-gitea-act-runner/blob/816b21f4bd8774d6f04b7f5d9f0bfa6fd761135e/image/run.sh#L45
$HOME
points to /data/
so the docker user does not seem to have write permission to that directory on the docker host.
Anyways, the issue does not seem to be related to storage-driver=overlay2
but to a write permission issue of the docker deamon or the GITEA_RUNNER_UID/GITEA_RUNNER_GID.
This fixed for me.
securityContext:
{{- toYaml .Values.podSecurityContext \| nindent 8 }}
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
Hi there
Thanks for the images :)
I am trying to get the dind rootless image to work and failing badly at the moment.
Any pointers would be very helpful :)
Thanks in advance
Docker run;