-
Notifications
You must be signed in to change notification settings - Fork 283
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
Failure to start systemd containers with cgroup v1 with dockerd #1132
Comments
I could reproduce the issue with Rancher Desktop 1.5.1, I see a different error message though
|
Any update on this? Still failing on RD 1.15.1 when creating KinD cluster. |
Not sure what this has to do with KinD, but that has been working for a couple releases already: $ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.31.0) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Thanks for using kind! 😊 There may be still issues on Windows, unrelated to cgroup, but this is a macOS issue... |
As for the original issue in this report, I think this will not work as long as Rancher Desktop uses an Alpine VM that uses |
I just tried running the sample in a $ docker run --rm -ti --privileged -v /sys/fs/cgroup:/sys/fs/cgroup local/c7-systemd
Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Welcome to CentOS Linux 7 (Core)!
Set hostname to <a1503cfcac12>.
Initializing machine ID from random generator.
Cannot determine cgroup we are running in: No such file or directory
Failed to allocate manager object: No such file or directory
[!!!!!!] Failed to allocate manager object, freezing. It is unlikely that we will spend any effort on figuring this out, so I will close this issue as unsupported. |
Rancher Desktop Version
0.7.0
Rancher Desktop K8s Version
1.21.7
What operating system are you using?
macOS
Operating System / Build Version
MacOS BigSur 11.6.2
What CPU architecture are you using?
x64
Windows User Only
No response
Actual Behavior
When I run a container, centos7 in this case, the container fails to run systemd.
Steps to Reproduce
Following the instructions at https://hub.docker.com/_/centos I've created a Centos Systemd ready container with the following Dockerfile:
Build the dockerfile:
Run the container:
Result
When I run the container, I get the following error:
Expected Behavior
The container should run and start with systemd running:
Additional Information
Seems to be related to this issue docker/for-mac#6073
The text was updated successfully, but these errors were encountered: