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
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.
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:
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
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-