nestybox / nestybox/sysbox

Cannot use systemd cgroups in inner docker

Open
#743 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.9k
Forks
230
Avg merge
7h 48m
Merged PRs (30d)
3

Description

I am able to run the container nestybox/ubuntu-focal-systemd-docker:latest in sysbox with the flag native.cgroupdriver=systemd passed to the inner-docker daemon. Unfortunately, if I re-create the container image from source using the Dockerfiles from https://github.com/nestybox/dockerfiles/blob/5b7ec2230af7fb65eb820277e8c408cfa68f79b7/ubuntu-focal-systemd-docker/Dockerfile then and pass the same flag to the inner docker daemon I get the following error when I launch inner
containers:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: mkdir /sys/fs/cgroup/misc/system.slice: permission denied: unknown.
ERRO[0001] error waiting for container: 

I expect some set of deb packages are no longer compatible, but I'm un-usure which (e.g. systemd, docker-ce, containerd)

Conversation: https://nestybox-support.slack.com/archives/CS7V68QMP/p1698693917681689

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked ubuntu-focal-systemd-docker/Dockerfile and compare an image built from that revision with nestybox/ubuntu-focal-systemd-docker:latest. Reproduce the inner Docker launch with native.cgroupdriver=systemd and investigate the package differences associated with the cgroup permission error; done means the rebuilt image launches inner containers successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.