-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd in a docker container with cgroups v2 #1
Comments
Thanks, that's interesting. I assume this is effectively the same as using rootless Podman? Couple of questions:
|
I'm using the docker daemon dockerd.
|
I tried running the same Dockerfile with podman but got this error: |
The problem I had with a systemd enabled podman container was resolved by an update to crun (Fedora 37) |
I guess I've this problem with gitlab-ce images after upgrading from Fedora 38 to Fedora 39(Beta).
I got redirected from containers/crun#1308. |
@aki-k This is interesting, thanks for the input on using Docker with cgroups v2 for systemd containers, I might try it out one day. In actual fact I'm more interested in cgroups v1 currently (partly because of the additional challenges), where I think the examples in this repo are more relevant. I'll close the issue because people seem to be getting redirected and commenting here from an entirely unrelated issue. |
Hi,
I read your e-mail to systemd-devel but thought to respond to you here and not in the mailing list.
I run systemd in a docker container like this:
I don't use --cap-add=SYS_ADMIN like you do
I use docker's userns-remap, so a local user dockuser that has an subuid and subgid range in /etc/subuid and /etc/subgid
Then I configure /etc/docker/daemon.json as follows:
I didn't run your tests but as I see it systemd in the container works fine.
The text was updated successfully, but these errors were encountered: