systemd in a docker container
Yes, that has been already done by Dan, but I wanted a more stable approach, so basically changing as few stuff as necessary.
The corner points are now:
- Add
--cap-add=CAP_SYS_ADMIN
(tho I am using=ALL
) - Add
–v /sys/fs/cgroup:/sys/fs/cgroup:ro
(or use a privileged container)
That’s it so far.
::: {#footer} [ April 23rd, 2015 4:28pm ]{#timestamp} [docker]{.tag} [systemd]{.tag} [container]{.tag} :::