On Mon, Feb 8, 2016 at 3:09 PM, Daniel J Walsh <[email protected]> wrote:

> I have patches into docker to allow it to register with machinectl and
> run systemd inside of the container without --privileges.  I also set it
> up so that the /var/log/journald/UUID on the host is mounted inside of
> the container, so that journald inside of the container writes to this
> location on the host.
>
> Then I use journalctl -M UUID on the host to look at the host journal.
> When I run the first container it works great.  I see the container, but
> when I run the second container, I end up seeing the first countainers
> journal again.  If I strace journalctl -M uuid it looks like it is
> reading all of the journals under /var/log/journalctl rather then just
> the one for UUID.
>
> Am I doing something wrong when I set this up?  How is this supposed to
> work?
>

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?

-- 
Mantas Mikulėnas <[email protected]>
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to