when i am trying to bring the container , it fails by throwing “The file: /usr/sw/jail/logs/debug.log is not writable.” is there a way i can change the logging directory to ay /opt
i beleive if i keep logging_debug_output=none , still debug.log will try to get created but due to permission issue it will not work for me, so i am trying if there is a way i can redirect the default “usr/sw/jail/logs” to the directory where i have access will solve my issue
Redirect the logs to stdout (disable logging to files) or disable debug log completely. The log config can be passed in as configuration keys when the docker container is created. See
The other option is to bind mount a host directory or mount a docker volume - each of course with read/write access - into the container at /usr/sw/jail/logs/
It is generally advisable to create this mount so data is preserved on changes to the container e.g. due to broker updates that require the container to be re-created.
This link explains more:
And this documents the folders within the broker storage: