Giter Site home page Giter Site logo

msyea / github-actions-runner-rootless Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 6.0 97 KB

Dockerised GitHub Actions self-hosted runner using ubuntu and rootless-dind

License: MIT License

Dockerfile 11.95% Shell 88.05%
github-actions-runner docker-in-docker dind rootless ubuntu

github-actions-runner-rootless's Issues

Cannot connect to the Docker daemon at unix:///home/rootless/.docker/run/docker.sock. Is the docker daemon running?

I do find your approach for setting up a rootless GitHub Actions Runner Docker image really great! So I decided to give it a try.

Unfortunately I'm facing some issues when executing the hello-world.yml you provide.

Runner is started with:

docker run --restart always --name github-runner \
  -e ACCESS_TOKEN="<MY_ACCESS_TOKEN>" \
  -e REPO_URL="https://github.com/abrokwasoft/test-repo/" \
  -e RUNNER_NAME="foo-runner" \
  -e RUNNER_WORKDIR="/tmp/github-runner-your-repo" \
  -e RUNNER_GROUP="my-group" \
  -e LABELS="my-label,other-label" \
  msyea/github-actions-runner:latest

Runner starts and registers at GitHub successfully so that it is able to execute the build job defined in hello-world.yml.

It fails with following error: Cannot connect to the Docker daemon at unix:///home/rootless/.docker/run/docker.sock. Is the docker daemon running?

Do you have any idea about the route cause of that issue?

Below you find the entire raw log of the executed build job:

2021-04-02T13:56:36.4294469Z ##[section]Starting: Request a runner to run this job
2021-04-02T13:56:36.5910584Z Found online and idle self-hosted runner in current repository that matches the required labels: 'self-hosted , linux'
2021-04-02T13:56:36.6512852Z ##[section]Finishing: Request a runner to run this job
2021-04-02T13:56:42.5162469Z Current runner version: '2.277.1'
2021-04-02T13:56:42.5187547Z Runner name: 'foo-runner'
2021-04-02T13:56:42.5189585Z Runner group name: 'Default'
2021-04-02T13:56:42.5192750Z Machine name: '550bf42c5784'
2021-04-02T13:56:42.5205129Z ##[group]GITHUB_TOKEN Permissions
2021-04-02T13:56:42.5207069Z Actions: write
2021-04-02T13:56:42.5207586Z Checks: write
2021-04-02T13:56:42.5208075Z Contents: write
2021-04-02T13:56:42.5208600Z Deployments: write
2021-04-02T13:56:42.5209117Z Issues: write
2021-04-02T13:56:42.5209596Z Metadata: read
2021-04-02T13:56:42.5210212Z OrganizationPackages: write
2021-04-02T13:56:42.5211103Z Packages: write
2021-04-02T13:56:42.5211802Z PullRequests: write
2021-04-02T13:56:42.5212372Z RepositoryProjects: write
2021-04-02T13:56:42.5212950Z SecurityEvents: write
2021-04-02T13:56:42.5213438Z Statuses: write
2021-04-02T13:56:42.5214077Z ##[endgroup]
2021-04-02T13:56:42.5218396Z Prepare workflow directory
2021-04-02T13:56:42.6295996Z Prepare all required actions
2021-04-02T13:56:42.7539112Z ##[group]Pull down action image 'hello-world'
2021-04-02T13:56:42.7653983Z ##[command]/usr/local/bin/docker pull hello-world
2021-04-02T13:56:42.8752838Z Cannot connect to the Docker daemon at unix:///home/rootless/.docker/run/docker.sock. Is the docker daemon running?
2021-04-02T13:56:42.8755714Z Using default tag: latest
2021-04-02T13:56:43.0413525Z ##[warning]Docker pull failed with exit code 1, back off 9.06 seconds before retry.
2021-04-02T13:56:52.0936230Z ##[command]/usr/local/bin/docker pull hello-world
2021-04-02T13:56:52.6591294Z Cannot connect to the Docker daemon at unix:///home/rootless/.docker/run/docker.sock. Is the docker daemon running?
2021-04-02T13:56:52.6595576Z Using default tag: latest
2021-04-02T13:56:52.7893670Z ##[warning]Docker pull failed with exit code 1, back off 2.286 seconds before retry.
2021-04-02T13:56:55.0820613Z ##[command]/usr/local/bin/docker pull hello-world
2021-04-02T13:56:55.6990875Z Cannot connect to the Docker daemon at unix:///home/rootless/.docker/run/docker.sock. Is the docker daemon running?
2021-04-02T13:56:55.6994025Z Using default tag: latest
2021-04-02T13:56:55.7404010Z ##[endgroup]
2021-04-02T13:56:55.7628985Z ##[error]Docker pull failed with exit code 1
2021-04-02T13:56:55.7789156Z Cleaning up orphan processes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.