Skip to content
Discussion options

You must be logged in to vote

Yes, Docker provides several methods for handling/persisting logs: https://docs.docker.com/engine/logging/
https://docs.docker.com/engine/logging/configure/#supported-logging-drivers

Using the journald logging driver will probably be the easiest for just enabling access locally to persisted debug logging from Watchtower:
https://docs.docker.com/engine/logging/drivers/journald/

If you're using a Compose file, then you'd add something like this to the Watchtower configuration:

...
logging:
      driver: journald
      options:
        tag: "{{.Name}}"  # Optional: Tags logs with container name for easier filtering
...

Then you can use something like this to pull the logs:

journalctl CONTAIN…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nicholas-fedor
Comment options

Answer selected by vderaa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants