-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
investigate requirements for support for rootless #9495
Comments
Not sure if rootless docker is enough to run the docker-in-docker node, but it should at least give a more obvious message... There are some similar issues on Windows, when people have both Hyper-V and WSL versions of the docker daemon VMs. |
Are you able to run https://github.com/kubernetes-sigs/kind
|
minikube start --driver docker
does not honour DOCKER_HOST
Wondering, if we need to support non-default docker endpoints anyway. Running docker server on a socket/fd different from /var/run/docker.sock is a perfectly valid configuration. |
I'm not sure that the container will start with rootless docker, it seems to have the same issues as running on chromeos etc:
|
Moving /var/run/docker.sock to a weird location is quite different from trying to run rootless docker, though. It's a feature that could be supported, but it wouldn't be a very common setup. Maybe if you want two ? |
This issue is similar to #8719 (for podman) And my comment was #8719 (comment)
|
True. It seems we have two issues here (please correct me if I'm wrong):
|
The issues aren't so much about "custom docker endpoint", that's pretty much a given if not using the standard socket... Issue 1 is about using a remote (not local) Docker daemon, Issue 2 is about using a rootless (not root) Docker daemon.
|
Nope, I wasn't able to kubernetes-sigs/kind#1902. And it looks like k8s can't run on rootless docker yet. But as you mentioned, there are two issues here. It would be nice that |
Both require minikube to use non-default DOCKER_HOST to work with daemon correctly, and right now we just set DOCKER_HOST to "" internally. This should be fixed in #9463. |
They will both still fail though. |
@medyagh : rootless minikube seems unlikely to make it to the 1.16 release, so we should probably remove this issue from it ? it will however be something for next year's (2021) roadmap, to keep an eye on the Docker 20 and Kubernetes 1.20 progress |
invetigation done, will be done in this issue #10836 |
Try the below commands sequentially: hope it help as it worked for me |
Steps to reproduce the issue:
I'm running rootless Docker on Fedora 32:
As you can see my rootless Docker is running on
unix:///run/user/1000/docker.sock
butminikube
is trying to talk to the one onunix:///var/run/docker.sock
Full output of failed command:
See above
Full output of
minikube start
command used, if not already included:See above
Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: