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.
6 lines
85 B
JSON
6 lines
85 B
JSON
{
|
|
"log-driver": "journald",
|
|
"log-opts": {
|
|
"tag": "{{.Name}}"
|
|
}
|
|
}
|