myoung34 / docker-github-actions-runner

This will run the new self-hosted github actions runners with docker-in-docker
GNU General Public License v3.0
1.63k stars 386 forks source link

mount: /proc/sys/fs/binfmt_misc: permission denied #379

Closed pompushko closed 1 month ago

pompushko commented 1 month ago

I have custom arm build in Docker with pguyot/arm-runner-action. Locally and on GitHub cloud runners works fine with ubuntu-latest

Maybe Im doing something wrong? Thank you!

mount: /proc/sys/fs/binfmt_misc: permission denied.
update-binfmts: warning: Couldn't mount the binfmt_misc filesystem on /proc/sys/fs/binfmt_misc.
myoung34 commented 1 month ago

What's your configuration? Environment vars, passing volumes etc

Also are you saying you're not using the runner I provide in this repo?

myoung34 commented 1 month ago

I don't think this is an issue with the project here but I'm missing a lot of context for how the runner is configured

pompushko commented 1 month ago

I just take your wiki example :)

But seems like fixed:

ExecStart=/usr/bin/docker run --rm --privileged \
                              --env-file /etc/ephemeral-github-actions-runner.env \
                              -e RUNNER_NAME=%H \
                              -v /var/run/docker.sock:/var/run/docker.sock \
                              -v /dev:/dev \
                              --name %N \
                              myoung34/github-runner:ubuntu-jammy

Added option --privileged, new volume -v /dev:/dev \ and distro is ubuntu-jammy