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.
This commit is contained in:
chris 2025-01-21 00:25:13 +01:00
parent 6fa896dd3f
commit 3139b41433
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak

View file

@ -1,3 +1,6 @@
{
"log-driver": "journald"
"log-driver": "journald",
"log-opts": {
"tag": "{{.Name}}"
}
}