<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 8, 2016 at 3:09 PM, Daniel J Walsh <span dir="ltr"><<a href="mailto:dwalsh@redhat.com" target="_blank">dwalsh@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have patches into docker to allow it to register with machinectl and<br>
run systemd inside of the container without --privileges.  I also set it<br>
up so that the /var/log/journald/UUID on the host is mounted inside of<br>
the container, so that journald inside of the container writes to this<br>
location on the host.<br>
<br>
Then I use journalctl -M UUID on the host to look at the host journal.<br>
When I run the first container it works great.  I see the container, but<br>
when I run the second container, I end up seeing the first countainers<br>
journal again.  If I strace journalctl -M uuid it looks like it is<br>
reading all of the journals under /var/log/journalctl rather then just<br>
the one for UUID.<br>
<br>
Am I doing something wrong when I set this up?  How is this supposed to<br>
work?<br></blockquote><div><br></div><div>If I remember correctly, -M adds a filter for _MACHINE_ID and _BOOT_ID? Try `SYSTEMD_LOG_LEVEL=debug journalctl -M <uuid>` to verify. Maybe your containers actually have identical '/etc/machine-id's?</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>