Permission issue on docker container log directory - fluentd

Hi -

I am using a fluentd to read docker containers log and feed it back to elasticsearch.

Problem Statement
My fluentd container is running as non-root users and it is getting permission issue on /var/lib/docker/containers folder which has no permission for any other users than root.

Docker is running as root.

One option I found is to use fluentd logging driver. Do we have an option in docker’s daemon.json file to control permission on docker’s folders like ./containers or logs?

Please suggest

1 Like