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: "docker run" and "docker rm" hangs #7497

Closed
mcandre opened this issue Apr 8, 2020 · 3 comments
Closed

docker-env: "docker run" and "docker rm" hangs #7497

mcandre opened this issue Apr 8, 2020 · 3 comments
Labels
co/docker-env docker-env issues co/runtime/docker Issues specific to a docker runtime kind/support Categorizes issue or PR as a support question. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@mcandre
Copy link

mcandre commented Apr 8, 2020

Steps to reproduce the issue:

  1. eval "$(minikube docker-env)"
  2. Use docker run, docker ps -a to deploy a container and get a container ID.
  3. Execute docker rm -f <container ID>

For example, deploy an HTTP echo server this way. However, the echo server does not actually bind to localhost:8080 as far as the host observes.

At this point, many things freeze up. The docker rm -f... stalls. Control+C (SIGINT) is unable to kill this. minikube docker-env also stalls.

Fortunately, minikube delete is able to temporarily fix the corrupt cluster, until you repeat the steps.

In fact, even the docker rm -f... continues to stall after minikube delete completes, so you'll have to manually close the shell session and launch a new one.

$ docker --version
Docker version 19.03.8, build afacb8b

$ minikube version
minikube version: v1.8.2
commit: eb13446e786c9ef70cb0a9f85a633194e62396a1

$ system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: macOS 10.15.4 (19E266)

Some good news: I repeated the steps on Windows (Git Bash). As before, host curl was unable to bind to the microservice on 8080. But nothing freezes up, and Control+C is able to terminate the docker run. Maybe this is a Mac thing? Just a Catalina thing? Just a static GNU Linux binary on HyperKit thing?

Curious how native Command Prompt and native PowerShell sessions behave. I'd also like to try WSL but I don't have a functioning WSL host at the moment. Also curious about Linux hosts.

@mcandre mcandre changed the title minikube freezes on docker rm -f <container> minikube freezes up on docker run... Apr 8, 2020
@tstromberg tstromberg added co/docker-env docker-env issues co/runtime/docker Issues specific to a docker runtime priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Apr 8, 2020
@tstromberg tstromberg changed the title minikube freezes up on docker run... docker-env: "docker run" and "docker rm" hangs Apr 8, 2020
@tstromberg tstromberg added the kind/support Categorizes issue or PR as a support question. label Apr 8, 2020
@tstromberg
Copy link
Contributor

I wasn't able to duplicate this on macOS catalina:

$ docker rm -f b66589f19e1c
b66589f19e1c

My docker run session aborted fairly quickly, and minikube delete worked. Can you try upgrading to minikube v1.9.3 and then provide more exact reproduction commands?

Two things I would like to see are:

  • an example image to run and the minikube start command used

I suspect it's just a Docker quirk, but it would be nice to have something I can reproduce first.

@medyagh
Copy link
Member

medyagh commented May 28, 2020

@mcandre are you still having this issue ? do you mind sharing what driver and verison of minikube are you using ?

@sharifelgamal
Copy link
Collaborator

@mcandre I'm going to go ahead and close this since we haven't heard from you in awhile and do not have a good way to reproduce the issue. If you still need help, feel free to reopen with the details @tstromberg requested above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-env docker-env issues co/runtime/docker Issues specific to a docker runtime kind/support Categorizes issue or PR as a support question. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

4 participants