Docker for Windows not working

后端 未结 19 870
自闭症患者
自闭症患者 2020-12-07 10:56

I\'ve installed Docker toolbox now and I get the error for everything:

Get http://127.0.0.1:2375/v1.20/version: dial tcp 127.0.0.1:2375: ConnectExtcp: No con         


        
19条回答
  •  离开以前
    2020-12-07 11:40

    I had the same issue with Docker Toolbox on Windows 10 Home. The steps to fix the problem from here:

    1. run docker-machine ls to get a list, you should probably see this:
    NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
    default   -        virtualbox   Stopped                 Unknown
    
    1. Optional step upgrading (be patient):
    docker-machine upgrade
    
    1. restart the default:
    docker-machine start default
    

    don't worry if says:

    Machine "default" is already running.

    1. now you should be able to run docker version and see something like:
    Client:
     Version:           19.03.1
     API version:       1.40
     Go version:        go1.12.7
     Git commit:        74b1e89e8a
     Built:             Wed Jul 31 15:18:18 2019
     OS/Arch:           windows/amd64
     Experimental:      false
    
    Server: Docker Engine - Community
     Engine:
      Version:          19.03.5
      API version:      1.40 (minimum version 1.12)
      Go version:       go1.12.12
      Git commit:       633a0ea838
      Built:            Wed Nov 13 07:28:45 2019
      OS/Arch:          linux/amd64
      Experimental:     false
     containerd:
      Version:          v1.2.10
      GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
     runc:
      Version:          1.0.0-rc8+dev
      GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
     docker-init:
      Version:          0.18.0
      GitCommit:        fec3683
    

提交回复
热议问题