[systemd-devel] Blog on running systemd within a docker container.

Daniel J Walsh dwalsh at redhat.com
Thu May 1 10:30:41 PDT 2014


On 05/01/2014 09:28 AM, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Apr 30, 2014 at 02:21:44PM -0400, Daniel J Walsh wrote:
>> http://rhatdan.wordpress.com/2014/04/30/running-systemd-within-a-docker-container/
> Interesting.
>
> The part where you remove all the links in .wants directories seems
> ugly. Would it be feasible to use a custom target instead of
> multi-user.target? Things removed this way will come back if
> e.g. systemd rpm is updated inside of the image. Judicious use of
> systemctl mask and setting a custom preset of 'disable *' should also
> help.
>
> Zbyszek
Well I want people to be able to yum install httpd; systemctl enable
httpd.service
Which I believe requires the multi-user.target to work correctly.

If you have better systemctl mask commands, I would love to use them
instead.



More information about the systemd-devel mailing list