docker_shinken icon indicating copy to clipboard operation
docker_shinken copied to clipboard

/var/log or /var/log/shinken should be a docker volume

Open erny opened this issue 10 years ago • 1 comments

I think, any logs / data stored should be persisted outside of the docker container, so that when rebuilding no data would be lost (much like custom_config).

erny avatar Nov 05 '15 15:11 erny

Agree. For simplicity, it is not written in docs. You can mount the /var/log directory of the container just like custom configs. Just add one more volume mounting. A quick example:

-v "/var/log/shinken:/var/log/shinken"

rohit01 avatar Nov 05 '15 15:11 rohit01