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
2
Q
How do you override the logging driver specific to a container?
A
docker run –log-driver syslog