Logging drivers Flashcards

1
Q

How do you set the default logging driver for the system?

A

vi /etc/docker/daemon.json
{
“log-driver”: “json-file”
}

options: json-file, syslog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you override the logging driver specific to a container?

A

docker run –log-driver syslog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly