-
Notifications
You must be signed in to change notification settings - Fork 86
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
Cgroupfs and cgroup ns handling in Docker breaks non-root services using latest systemd #835
Comments
It is not normally advised to run systemd inside of a docker container since the docker daemon will manage the lifecycle of the process running (kind of overlapping the responsibilities of systemd). Is there a way for you to just run the binary in the container that you need? |
While I am aware of the general advice and risks about this kind of setup, at this time I'm afraid the answer to your question for my situation is no. |
I'm running into the exact same thing. My use case is to run Puppet acceptance tests and for that it needs systemd. We use docker containers because that's the easiest available way to run different distributions in cloud CI systems. I can't reproduce it with the Docker included in CentOS 7 (1.13.1) but can with Docker CE 19.03.5. |
I'm running into this same problem with the same use case for Chef with the Kitchen dokken driver. |
This is needed because of docker/for-linux#835 and moby/moby#38749. Long story short: systemd on CentOS 7.7 is broken with current versions of Docker.
This is needed because of docker/for-linux#835 and moby/moby#38749. Long story short: systemd on CentOS 7.7 is broken with current versions of Docker.
Needed because of docker/for-linux#835 Also see 8496ed3
Expected behavior
A service managed by systemd>=237 that runs as a non-root user should be started.
Actual behavior
systemd[1]: named.service: New main PID 751 does not belong to service, and PID file is not owned by root. Refusing.
Steps to reproduce the behavior
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
docker-ce container running in VM.
See also:
moby/moby#38749
systemd/systemd#11752
The text was updated successfully, but these errors were encountered: