Comments (2)
I'm not sure honestly. If I had to guess either the module isnt loaded or virtualization isnt enabled, but this is a bit outside the scope of the docker runner itself
from docker-github-actions-runner.
I've managed to resolve the problem by creating a custom image with qemu-kvm and dependencies, as well as updating the docker-compose.yaml file.
Here is the Dockerfile:
FROM myoung34/github-runner:latest
# Update packages and install qemu-kvm and dependencies
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
And here is the updated docker-compose.yaml:
version: "3.9"
services:
my-worker:
build:
context: .
dockerfile: Dockerfile
privileged: true
devices:
- "/dev/kvm:/dev/kvm"
environment:
REPO_URL: https://github.com/my-user/my-repo
RUNNER_NAME: my-runner
RUNNER_TOKEN: ${RUNNER_TOKEN}
RUNNER_WORKDIR: /tmp/runner/work
RUNNER_SCOPE: "repo"
LABELS: linux,x64,gpu
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/tmp/my-runner:/tmp/runner"
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within
Please note that while this solution worked in this particular instance, it may not be the most optimal depending on the specifics of your setup and needs.
from docker-github-actions-runner.
Related Issues (20)
- CUDA enabled container HOT 3
- Why is `/var/run/docker.sock` needed? HOT 4
- `/usr/bin/chown` not found on Debian Bulleyes HOT 1
- Cannot pull docker image HOT 1
- Dependency Dashboard
- Cannot connect to the Docker daemon HOT 11
- Run as helm chart HOT 2
- No space left on device HOT 6
- Latest bionic is broken with Glibc error HOT 2
- Use modern socket in Kubernetes YAML sample HOT 1
- Cannot Checkout Code When Running jobs Inside Container HOT 3
- Extremely slow? HOT 4
- Runner Name use ECS Task id/Container id HOT 1
- Q: "Full" runner images HOT 2
- Runner not showing up in Github but no errors HOT 3
- about the usage of docker-in-docker with github actions HOT 1
- [Clarification] JWT Authorization vs Github CLI HOT 2
- Missing `pkg-config` HOT 4
- Provide Ubuntu 22.04 Based Images HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-github-actions-runner.