-
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
Support DOCKER_HOST user override from within minikube pod container #8219
Comments
Hopefully this use case will also be covered by #8164 by not resetting the DOCKER_HOST. But it could have a problem with the KIC driver, trying to run docker-in-docker-in-docker... |
Nice, agreed on #8164 for a fix and there's no doubt bound to be interesting interplays between virtualization layers (mostly experimenting with the capabilities at the moment). |
The more straight-forward approach would be to deploy multiple kubernetes clusters. Perhaps even a namespace would suffice, depending on how much isolation is needed... i.e. give it they keys to the k8s cluster, rather than the keys to the container runtime ? This is similar to where people try to run nested VMs, instead of just deploying two. [#4730] See also: https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ This gets even worse, when the original cluster is running in virtual machines: Physical server -> Virtual Server(s) -> System container -> Pod container(s) Throw in a Java virtual machine at the end, and you have a Matryoshka doll ? |
Haha for sure @afbjorklund - more straightforward though more expensive and perhaps less efficient (especially for very short lived clusters/test environments). Also, seems like there's a bit of confusion in terms of |
@0x0i http://storage.googleapis.com/minikube-builds/8164/minikube-linux-amd64 mind that this PR is still waiting for fixing the integration tests, but you could give it a try now to see if that helps you |
Hey, thanks and have tried though am hitting a
Not sure if Anyway, I've found stuff like this and thinking it could be because we're currently using alpine linux. Will try with something like ubuntu or centos. |
You will find it in
It also needs to be documented better, for the "none" driver. #7905 You will find that it is also looking for some other tools, like iptables. |
@medyagh I tried it out and it was able to start the containers but wasn't able to connect.
If I connect to my docker host, I see them running but they bound the IPs to For some context: I am trying to run this from my Mac to a remote docker host using |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Overview:
My team and I are currently looking for a way to launch minikube instances on Kubernetes pods using the DinD as a sidecar method for CI related purposes. We're having issues getting minikube running in one pod container to communicate with a Docker daemon running in another pod container (and listening at 0.0.0.0:2375).
Seems as though the
DOCKER_HOST
envvar is not being respected by minikube nor is the --docker-opt[=-H tcp://localhost:2375]
cmd-flag.System Information:
Related Issue(s): #7420
re:
unix:///var/run/docker.sock
error despite supposed override -#7420 (comment)Steps to reproduce the issue:
Full output of failed command:
The text was updated successfully, but these errors were encountered: