Skip to content

Getting rid of duplicated journalctl logs #72

Answered by aksiksi
4JX asked this question in Q&A
Discussion options

You must be logged in to vote

I think I see what the problem is.

For Podman, the container runs in detached mode, which means container output does not go to stdout: https://github.com/NixOS/nixpkgs/blob/b47fd6fa00c6afca88b8ee46cfdb00e104f50bca/nixos/modules/virtualisation/oci-containers.nix#L335

I guess this can only be done with Podman because it is natively integrated with systemd. That is, systemd events will propagate to Podman and vice-versa.

I would recommend filing an upstream issue to ask about this, and whether it would be possible to add an option to suppress stdout in favor of the log-driver setting. One idea could be to disable stdout logging for Docker if log-driver == "journald".

For now, your only opti…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@4JX
Comment options

@aksiksi
Comment options

Answer selected by aksiksi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants