ibuildthecloud / systemd-docker

Wrapper for "docker run" to handle systemd quirks
Apache License 2.0
720 stars 111 forks source link

Logging lost after docker restart #44

Open mwpastore opened 7 years ago

mwpastore commented 7 years ago

SystemD seems to lose the handles to the container's stdout and stderr after restarting it with docker restart. I see this:

Feb 04 19:12:23 iris systemd-docker[12192]: [04-Feb-2017 19:12:23] NOTICE: Terminating ...
Feb 04 19:12:23 iris systemd-docker[12192]: [04-Feb-2017 19:12:23] NOTICE: exiting, bye-bye!

And then nothing else, even though the container is (still) running, with the same container ID. Is there any way to reattach the journal after a restart?