ansible-infra/roles/docker/files/daemon.json
c6ristian 3139b41433
use the container name as journal tag not id
Docker by default will use the container id as the journal tag when
logging into systemd-journal.
Using the container name makes easier to see which log belongs to which container.
2025-01-21 00:25:13 +01:00

6 lines
85 B
JSON

{
"log-driver": "journald",
"log-opts": {
"tag": "{{.Name}}"
}
}