-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hey there. I am experimenting with this project and I was hoping to run lokinet on my restricted docker system some of my homelab services and limit some access through lokinet only and also run a few private exit nodes. I'm running into some funky errors despite setting up my compose to use host ns, I think i may need more cap_add entries? I'm not quite sure what the container needs though.
version: '2'
services:
lokinet:
image: registry.oxen.rocks/lokinet-nginx:latest
privileged: true
tty: true
userns_mode: 'host'
cap_add:
- NET_ADMIN
- SYS_MODULE
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup/systemd
- data:/data
volumes:
data:
ERROR: for lokinet_lokinet_1 Cannot start service lokinet: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/docker/165536.165536/volumes/c9fea03f5685abc039b0a22512cfa34fc6e772a8618e6697d60aa50a711b862a/_data" to rootfs at "/sys/fs/cgroup/systemd": mkdir /var/lib/docker/165536.165536/overlay2/a7089861ecc7c7f6c7046e21040a18762c4d86be28321cb07e73e99c538caa71/merged/sys/fs/cgroup/systemd: read-only file system: unknown
ERROR: for lokinet Cannot start service lokinet: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/docker/165536.165536/volumes/c9fea03f5685abc039b0a22512cfa34fc6e772a8618e6697d60aa50a711b862a/_data" to rootfs at "/sys/fs/cgroup/systemd": mkdir /var/lib/docker/165536.165536/overlay2/a7089861ecc7c7f6c7046e21040a18762c4d86be28321cb07e73e99c538caa71/merged/sys/fs/cgroup/systemd: read-only file system: unknown
I've also tried tweaking the example compose file to match system volumes with ro/rw; the container starts and fails
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
lokinet_1 | Failed to create /init.scope control group: Read-only file system
lokinet_1 | Failed to allocate manager object: Read-only file system
lokinet_1 | [!!!!!!] Failed to allocate manager object.
lokinet_1 | Exiting PID 1...
lokinet_lokinet_1 exited with code 255
lokinet_1 | Failed to create /init.scope control group: No such file or directory
lokinet_1 | Failed to allocate manager object: No such file or directory
lokinet_1 | [!!!!!!] Failed to allocate manager object.
lokinet_1 | Exiting PID 1...
lokinet_lokinet_1 exited with code 255
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels