Mounting a docker volume on SELinux enabled host
My workflow with docker usually involves volume mounting a host directory so that I can read and write to the host directory from my container as a non-root user. On a Fedora 23 host with SELinux enabled, this is what I have to do differently:
Use: -v /var/dir1:var/dir1:Z
Note the extra Z above? You can learn more about it this Project Atomic blog post