runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Run systemd failed in clear container

Open jovizhangwei opened this issue 6 years ago • 3 comments

It seems we cannot run systemd in clear container

[root@dca0f971fd25 /]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service, pointing to /usr/lib/systemd/system/httpd.service.
[root@dca0f971fd25 /]#  systemctl start httpd
Running in chroot, ignoring request.

Any idea to support that?

jovizhangwei avatar Sep 07 '17 02:09 jovizhangwei

Ping?

jovizhangwei avatar Sep 14 '17 03:09 jovizhangwei

/cc @devimc and @jcvenegas for any thoughts. @jovizhangwei - do you have an example where this works for runc per chance? I'm guessing maybe there you are using a --privileged container? An example of how you ran the container and what you are expecting to see would help.

grahamwhaley avatar Sep 14 '17 09:09 grahamwhaley

@jovizhangwei could you please add more information? for example the container you are using and the command used to start the container

devimc avatar Sep 14 '17 16:09 devimc