Skip to content
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

docker-env should ignore invalid docker proxy env vars #10098

Closed
lingsamuel opened this issue Jan 6, 2021 · 5 comments · Fixed by #10109
Closed

docker-env should ignore invalid docker proxy env vars #10098

lingsamuel opened this issue Jan 6, 2021 · 5 comments · Fixed by #10109
Labels
co/kvm2-driver KVM2 driver related issues co/runtime/docker Issues specific to a docker runtime triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@lingsamuel
Copy link
Contributor

Steps to reproduce the issue:

  1. minikube start --driver=kvm2
  2. minikube docker-env

I found sometimes docker-env finished almost instantly, sometimes it takes about 10s+.

@afbjorklund
Copy link
Collaborator

You can try troubleshooting with --alsologtostderr, to see where it is spending the time ?

There were a lot of health checks added, both to the cluster and to the docker runtime itself.

@afbjorklund afbjorklund added co/kvm2-driver KVM2 driver related issues co/runtime/docker Issues specific to a docker runtime triage/needs-information Indicates an issue needs more information in order to work on it. labels Jan 6, 2021
@lingsamuel
Copy link
Contributor Author

lingsamuel commented Jan 8, 2021

Okay I found the reason...

I0108 11:08:47.237526 3197810 docker-env.go:427] Testing Docker connectivity with: /usr/bin/docker version --format={{.Server}}
W0108 11:08:47.276089 3197810 docker-env.go:293] couldn't connect to docker inside minikube.  output: proxy: unknown scheme: socks
 error: exit status 1
W0108 11:08:47.276112 3197810 docker-env.go:187] dockerd is not active will try to reload it...

I have proxy set to socks://127.0.0.1:1080/
golang requires socks5 xref golang/go#16715 and https://github.com/golang/net/blob/6772e930b67bb09bf22262c7378e7d2f67cf59d1/proxy/proxy.go#L91-L99

@lingsamuel
Copy link
Contributor Author

So that's the reason why my pods always restart 😂 I was thought that's because of my lack of memory

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jan 8, 2021

There should be some output, when minikube is doing "extra" stuff (instead of printing docker-env)

I think in docker-machine env completes much faster, but you might end up with bogus variables.

Normally it is fast, though.

Just checks the cluster status and runtime connectivity (docker version).

@lingsamuel
Copy link
Contributor Author

lingsamuel commented Jan 8, 2021

There should be some output, when minikube is doing "extra" stuff

Couldn't agree more! Sometimes I have to add --alsologtostderr to see why minikube hangs there.

@lingsamuel lingsamuel changed the title Sometimes docker-env very slow docker-env should ignore invalid docker proxy env vars Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kvm2-driver KVM2 driver related issues co/runtime/docker Issues specific to a docker runtime triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants