Why would I need to run docker privileged to access host log4j2.yaml
I’ve got a centos 7 image in a centos 7 host.
My entrypoint uses -Dlog4j.configurationFile=file:/opt/foo/bar/log4j2.yaml
I use a -v switch to share /home/fooser/log4j2.yaml:/opt/foo/bar/log4j2.yaml
When I just use –cap-add SYS_ADMIN (I need samba access), log4j is unable to access it’s config file; however, if I use –privileged, everything works. I understand I must need an additional capability, but have no idea what it would be.