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:
parent
6fa896dd3f
commit
3139b41433
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
{
|
{
|
||||||
"log-driver": "journald"
|
"log-driver": "journald",
|
||||||
|
"log-opts": {
|
||||||
|
"tag": "{{.Name}}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue