Docker Community Forums

Share and learn in the Docker community.

How to redirect logs to host folder (windows 10)

(Mike03081972) #1

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, I got the logs :slight_smile:

This is my test docker-compose file :

version: "3.4"
    image: postgres
      - 5432:5432
      driver: syslog
        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 ?