Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
docker could not read CA certificate ca.pem permission denied #3083
docker could not read CA certificate ca.pem permission denied
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
I'm on ubuntu (sid) and using minikube v0.28.2, docker 17.06.2-ce (from snap)
The perms look ok all the way down:
What you expected to happen:
docker to connect to the minikube instance of docker
How to reproduce it (as minimally and precisely as possible):
I believe the problem here is that the docker snap is strictly confined, which means it can't read arbitrary locations on the file system. It can read the home directory, but only non-hidden files, which excludes dot-files, such as the .minikube directory in your example.
Hi @tvansteenburgh. Yes you are right, snap is being blocked by AppArmor.
I was able to resolve this by adding:
docker ps is now happy:
If I did this to best practice though is to be determined, I will try to funnel this to some Ubuntu/Snap folks. For now I will close this.
I tried to apply your fix above, and now Apparmor complains to me:
Maybe it is where I placed it? or some formatting I am not entering? I am new to this and any insight you could provide would be appreciated.
file snippet for context below:
For absolute beginners / googlers like me the line to add is precisely:
Eg in my case: