Hangs on run and exits only with CTRL + C

These are our images:

PS C:\Users\bigfo> docker images                                                                                                                          
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE                                                                      
mongo               latest              71c101e16e61        12 days ago         358MB                                                                     
mongo               <none>              88b7188af865        2 weeks ago         358MB                                                                     
hello-world         latest              1815c82652c0        3 weeks ago         1.84kB                                                                    

These are our containers:

  • How can I set the time zone in Dockerfile using gliderlabs/alpine:3.3
  • docker segmentation fault (core dumped), what to do in this situation?
  • Docker build: returned a non-zero code: 1
  • Problems deploying Keycloak in HA using Postgres in Docker
  • Cannot connect to MYSQL in a LAMP docker container
  • How to run wget inside Ubuntu Docker image?
  • PS C:\Users\bigfo> docker ps -a                                                                                                                           
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                    PORTS               NAMES                  
    2b2b2d73559d        mongo               "docker-entrypoint..."   6 days ago          Exited (128) 6 days ago                       some-mongo             
    678d1e4a4b0c        hello-world         "/hello"                 2 weeks ago         Exited (0) 2 weeks ago                        eager_turing           
    

    This is our docker version:

    PS C:\Users\bigfo> docker -v
    Docker version 17.06.0-ce, build 02c1d87
    

    The following hangs:

    PS C:\Users\bigfo> docker run hello-world                                                 
    

    Two questions:

    1. How can we troubleshoot this?
    2. How can we resolve this?

    We’re on Windows 10.

  • Passing arguments for Dockerfiles using Docker compose
  • Docker: Is running tests of a windows product on linux container good?
  • Docker with vnc or vagrant with vnc for graphical aplications
  • Cannot reach “static-mapped” docker container from another container on the same host
  • Difference between LXC and libcontainer
  • Gitlab docker registry pull failed EOF
  • One Solution collect form web for “Hangs on run and exits only with CTRL + C”

    On Windows the fix was to restart Docker.

    First quit docker …

    Quit docker via the task bar.

    … then start the daemon from a shell (such as PowerShell) …

    PS> & "C:\Program Files\Docker\Docker\Docker for Windows.exe"
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.