<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Any suggestions on how to instrument systemd inside a CentOS 7 container (running under docker 1.13 Fedora 27 beta) to determine why it doesn't launch logind journald dbus-daemon and other units?</p>
<p><br>
</p>
<p>What is the main reason that systemd-journald would fail to launch?</p>
<p><br>
</p>
<p>The container was created under Fedora 26 and configured to just launch sshd:</p>
<p><br>
</p>
<p></p>
<div>FROM centos:7</div>
<div>ENV container docker</div>
<div>STOPSIGNAL SIGRTMIN+3</div>
<div>CMD [ "/sbin/init" ]</div>
<div><span style="font-size: 12pt;">RUN yum -y install systemd openssh-server procps-ng; systemctl enable sshd</span><br>
</div>
<div>RUN echo 'root:passwordxxxxxxxxxxxxxxxxxxxxxxxxxxxx'<span> | chpasswd</span></div>
<div><span><br>
</span></div>
<div><span>(I amrelying on all the oci hooks to mount cgroups etc with the correct permissions and labels).</span></div>
<div><span><br>
</span></div>
<div><span>Under Fedora 26, docker exec container ps -ef </span></div>
<div><span>
<div>UID PID PPID C STIME TTY TIME CMD</div>
<div>root 1 0 0 11:51 ? 00:00:00 /sbin/init</div>
<div>root 17 1 0 11:51 ? 00:00:00 /usr/lib/systemd/systemd-journald</div>
<div>root 25 1 0 11:51 ? 00:00:00 /usr/lib/systemd/systemd-logind</div>
<div>dbus 26 1 0 11:51 ? 00:00:00 /bin/dbus-daemon --system --address=sys</div>
<div>root 27 1 0 11:51 ? 00:00:00 /usr/sbin/sshd -D</div>
<div><br>
</div>
Under Fedora 27 beta:</span></div>
<div><span style="font-size: 12pt;">UID PID PPID C STIME TTY TIME CMD</span><br>
</div>
<div><span>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
root 1 0 0 11:51 ? 00:00:00 /sbin/init</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
We can't seem to startup journald and friends. /var/lib/docker/ is unchanged from Fedora 26.</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
When I boot back into Fedora 26 and launch the container all the units after /sbin/init work.</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
Richard</div>
<div style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</div>
<br>
</span></div>
<div><span><br>
</span></div>
<br>
<p></p>
</div>
</body>
</html>