Comments (2)
Elaborating on the issue, here's (rootless) Docker as an example for an application requiring cgroups.
dockerd
can successfully be started from within a Void container, at least when skipping the service file's attempt to modprobe anything:
grep -vw modprobe /etc/sv/docker/run | sudo
The daemon is running, but docker run hello-world
will report an error:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: mountpoint for devices not found: unknown.
ERRO[0000] error waiting for container: context canceled`
The daemon will additonally mention:
mkdir: cannot create directory ‘/sys/fs/cgroup/systemd’: No such file or directory
mount: /sys/fs/cgroup/systemd: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
...
...
copy shim log error="read /proc/self/fd/14: file already closed"
To resolve, /sys/fs/cgroup has to at least be made writeable (docker wants to create the systemd cgroup there) and the devices
cgroup has to be mounted:
sudo mount -t tmpfs cgroup /sys/fs/cgroup
sudo mkdir /sys/fs/cgroup/devices
mount -t cgroup -o devices none /sys/fs/cgroup/devices
(At startup, dockerd
will still complain about other missing cgroups. Those can be made available too by utilizing the above mkdir & mount, but aren't necessary in this example.)
At this point docker run hello-world
should execute successfully.
from void-runit.
See #103 for some more thoughts on this situation.
@kevcrumb I notice you chose to use cgroup1 inside the container. What is that decision based on? The fact that the docker service basically assumes cgroup1, or did you try cgroup2 and it caused issues? Could you try again with cgroup2 and a docker service run file with the cgroup handling removed?
from void-runit.
Related Issues (20)
- ZZZ seems to glitch with graphical wayland sessoions HOT 4
- Incomplete PATH in scripts for the three stages HOT 6
- Dirty bit is set after every reboot HOT 1
- Add support for Busybox HOT 11
- Missing folder HOT 5
- failed to lock /etc/exports.d/zfs.exports.lock: Read-only file system in core-services/03-filesystems.sh HOT 1
- Boot path should always try to set hardware clock, but not err out
- 03-filesystems.sh: too emergency_shell prone? HOT 2
- proc hidepid=2 not working HOT 2
- Cryptsetup fails on boot when using option "keyfile-offset" HOT 1
- Discussion: any potential interest for eventually adopting InitWare? HOT 3
- 03-filesystems.sh can't access a keyfile on a separate, encrypted /boot partition HOT 1
- 01-static-devnodes.sh: do not parse
- wpa_supplicant can't run in zsh/sh default shell HOT 4
- man vlogger: incorrect documentation regarding the default tag and facility HOT 1
- vlogger: Potential crash on startup HOT 3
- recovery /var/service after deleting by mistake HOT 5
- NetworkManager does not stop correct on runit-shutdown HOT 2
- 03-filesystems.sh ignores ro option in /etc/fstab for root fs
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 void-runit.