Hello I am getting permission denied on docker containers when creating Kubernetes from a private repo using Kubeadm. Basically Kubeadm successfully pulls all 7 Kubernetes containers, but 4 of which fail to start because they can not write to the .conf files in the /etc/kubernetes directory (permission denied).
error loading config file "/etc/kubernetes/controller-manager.conf": open /etc/kubernetes/controller-manager.conf: permission denied
I have tried elevating Docker’s permissions by making a docker user. I also tried sudo chmod 666 /var/run/docker.sock but that doesnt work either. I have tried sed setenforce 0.
I tried chmod 775 on the directory after the kubeadm install fails, and some of the docker containers can now start. But the kubeadm installation still fails. This permissions problem doesnt happen when I pull the regular gcr/k8s.io images from google.
Source: Docker Questions