Docker Community Forums

Share and learn in the Docker community.

How do i change the docker daemon default log location

Hi ,

We have environment where Docker daemon is writing log under /var/log/messages , we would want to move the default log location to some other mount point/ directory where the space is available .

Can someone suggest me how to change the default log location .

Thanks for your reply .

In the document i can able to see the default log location but i coudn’t find the document for to change default loction user defined location .

RHEL, Oracle Linux /var/log/messages

Hi, you can use syslog to change the location of docker.

I found this example for you:

1 Like