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.

  • Connect java application to YouTube Vitess database
  • How to use docker with gradle while having private docker registry server
  • docker restart,exit command, reboot the host machine
  • Why is my Tutum service starting then within 2 seconds stopping with a container status “die” command?
  • Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X
  • Docker cannot start MongoDb with attached volume through data-only container
  • How to configure autoscaling on docker swarm?
  • Trying to install rbenv in dockerfile not working
  • Docker disk memory : can I remove intermediate images?
  • Docker-compose does not install or run properly on boot2docker
  • Error: ./ts3server: not found
  • Understanding source and target containers in Docker linking
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.