I am following a tutorial (https://github.com/lmakonem/pfsense-graylog) on parsing pfSense logs and sending them to grafana. Part of the tutorial is copying a file to /etc/graylog/server, which requires elevated privs. I am running graylog in a container. Running docker exec /bin/bash gets me into the container, however I am unable to copy the file from the connected (host) persistent storage to where it needs to go as I don’t have root privs, and there doesn’t appear to be sudo on the container. How do I gain the privs necessary to move the file?
you do not need to copy that to /etc/graylog/server - you could use any location. Just need to make sure that you adjust the configuration of the lookup table …
I have tried to do the volume mount, however it does not seem to be taking. My compose file is: https://dpaste.org/27tO
I have a similar mount command for my elasticsearch container, which is working. If I docker exec -it /bin/bash and check the container, there are contents in the docker config directory, but they are not reflected on the host.