Re: [systemd-devel] Access journal log files within Docker Container using sd-journal API

2021-03-09 Thread Sebastian Borchers
Thanks for your help Lennart, that was indeed the problem. Sebastian On 09/03/2021 11:18, Lennart Poettering wrote: > On Di, 09.03.21 10:49, Sebastian Borchers ([email protected]) wrote: > >> Hello, >> >>> Does "journalctl --file=…" work? >> You mean inside the container, right? >> I instal

Re: [systemd-devel] Access journal log files within Docker Container using sd-journal API

2021-03-09 Thread Sebastian Borchers
Hello, > Does "journalctl --file=…" work? You mean inside the container, right? I installed systemd in the container and tried the following command: journalctl --file /var/log/journal//system.journal and it printed: *Failed to open files: Protocol not supported* So no, it does indeed not work.

[systemd-devel] Access journal log files within Docker Container using sd-journal API

2021-03-09 Thread Sebastian Borchers
Hello, I have a question. I am trying to read journald log files within a docker container on a host that is using systemd. Inside the container, systemd is NOT running. I want to use a library that uses the sd-journal API to read the logs within the container. I tried the following docker cmd:

Re: [systemd-devel] Access journal log files within Docker Container using sd-journal API

2021-03-09 Thread Lennart Poettering
On Di, 09.03.21 10:49, Sebastian Borchers ([email protected]) wrote: > Hello, > > > Does "journalctl --file=…" work? > You mean inside the container, right? > I installed systemd in the container and tried the following command: > > journalctl --file /var/log/journal//system.journal > > and

Re: [systemd-devel] Access journal log files within Docker Container using sd-journal API

2021-03-09 Thread Lennart Poettering
On Di, 09.03.21 10:24, Sebastian Borchers ([email protected]) wrote: > Hello, > > I have a question. I am trying to read journald log files within a > docker container on a host that is using systemd. > Inside the container, systemd is NOT running. I want to use a library > that uses the sd-