How can I redirect the container logs to a host folder running on windows 10 ?
I’m using “Docker Community Edition” 18.06.1 !
When I use syslog driver without options, I get this error : Cannot start service pg01: failed to initialize logging driver: Unix syslog delivery error
No error If I add these options : syslog-address: "udp://fullmachinename:514"
If I use a syslog server (like one from syslogwatcher.com), I got the logs
This is my test docker-compose file :
version: "3.4" services: pg01: image: postgres ports: - 5432:5432 logging: driver: syslog options: syslog-address: "udp://localhost:514"
How to change this file, so that my logs are redirected to a local folder : D:\Logs\
What are the list of options for syslog under windows ?