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

kic with docker-env: endpoint read: connection reset by peer #6463

Closed
balopat opened this issue Feb 2, 2020 · 5 comments · Fixed by #6487
Closed

kic with docker-env: endpoint read: connection reset by peer #6463

balopat opened this issue Feb 2, 2020 · 5 comments · Fixed by #6487
Assignees
Labels
co/docker-driver Issues related to kubernetes in container co/runtime/docker Issues specific to a docker runtime priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@balopat
Copy link
Contributor

balopat commented Feb 2, 2020

The exact command to reproduce the issue:

$ minikube start --vm-driver=docker --container-runtime=docker 
# ....
$ minikube docker-env                                                                                                                                                
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://127.0.0.1:32778"
export DOCKER_CERT_PATH="/Users/balintp/.minikube/certs"
# Run this command to configure your shell:
# eval $(minikube docker-env)

Now, if I eval...

$ eval $(minikube docker-env)
echo $DOCKER_HOST
tcp://127.0.0.1:32778
# great! 
$ docker images                                                                                                                                                               
error during connect: Get https://127.0.0.1:32778/v1.40/images/json: EOF
# not that great :( 

The operating system version:
MacOSX Mojave

@afbjorklund
Copy link
Collaborator

afbjorklund commented Feb 2, 2020

I think the container runtime option (for docker driver) is quite new, it originally used containerd.

As a workaround you can avoid the docker-env and talk directly to same docker as minikube uses ?

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container co/runtime/docker Issues specific to a docker runtime labels Feb 2, 2020
@tstromberg
Copy link
Contributor

I was able to replicate this on Linux.

@tstromberg tstromberg added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Feb 3, 2020
@tstromberg tstromberg changed the title minikube docker-env details don't work with docker driver / docker runtime kic with docker-env: endpoint read: connection reset by peer Feb 3, 2020
@balopat
Copy link
Contributor Author

balopat commented Feb 3, 2020

I think the container runtime option (for docker driver) is quite new, it originally used containerd.

As a workaround you can avoid the docker-env and talk directly to same docker as minikube uses ?

The point would be to reuse the same daemon the containers are loaded from in the cluster. e.g. skaffold relies on this to avoid pushing.

@medyagh
Copy link
Member

medyagh commented Feb 4, 2020

@balopat I can re-produce this and I have a fix for it. the problem is dockerd is not lsitening on 0.0.0.0 insice the conrtianer.

I was able to fix it by changing the systemd file args

@medyagh
Copy link
Member

medyagh commented Feb 4, 2020

more details #6485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container co/runtime/docker Issues specific to a docker runtime priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants