[systemd-devel] Access journal log files within Docker Container using sd-journal API
Sebastian Borchers
sebastian at desertbit.com
Tue Mar 9 11:00:48 UTC 2021
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 (sebastian at desertbit.com) 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/<machine-id>/system.journal
>>
>> and it printed: *Failed to open files: Protocol not supported*
> My guess is that your container runs a much older system version that
> the host, in particular host might be 246 or newer, and container
> might be older than that.
>
> See NEWS file of systemd, we added a new compression and other stuff in
> 246. If these features are used in a file you need a client library
> that supports them to access the features.
>
> Lennart
>
> --
> Lennart Poettering, Berlin
More information about the systemd-devel
mailing list