Permission denied to access /var/run/docker.sock mounted in a OpenShift container
问题 Objective Know how to trouble shoot and what knowledge is required to trouble shoot permission issues of Docker container accessing host files. Problem Access to /var/run/docker.sock mounted inside a OpenShift container via hostPath causes permission denied. The issue does not happen if the same container is deployed to K8S 1.9.x, hence it is OpenShift specific issue. [ec2-user@ip-10-0-4-62 ~]$ ls -laZ /var/run/docker.sock srw-rw----. root docker system_u:object_r:container_var_run_t:s0 /var