Docker for Windows not working

后端 未结 19 902
自闭症患者
自闭症患者 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:44

    this works for me

    1) start the command line tool first and get the machine ip address by running

    docker-machine ls command

    2) Re-generate certs docker-machine regenerate-certs

    3) Set the evn variables manually in my case the location of certs was different

    set DOCKER_TLS_VERIFY=1

    set DOCKER_HOST=tcp://machine_IP:2376

    set DOCKER_CERT_PATH=C:\Users\X.docker\machine\certs

    set DOCKER_MACHINE_NAME=default

    Now run docker version

    Here is the output in my case

    Client: Version: 1.8.1 API version: 1.20 Go version: go1.4.2 Git commit: d12ea79 Built: Thu Aug 13 02:49:29 UTC 2015 OS/Arch: windows/amd64

    Server: Version: 1.8.1 API version: 1.20 Go version: go1.4.2 Git commit: d12ea79 Built: Thu Aug 13 02:49:29 UTC 2015 OS/Arch: linux/amd64

提交回复
热议问题