Docker for Windows not working

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

    The Docker Toolbox (in 1.8.x) installation configure by default your Docker Daemon to use secure connection via the TLS protocol (version 1.8).

    If you were using an older version of the daemon that wasn't secured that means at least two things : - the port number changed from 2375 to 2376 - your daemon client need to present a certificat to communicate with you docker engine/server.

    So the reply of sandiindia indicates the environment variables that precise to the docker client the good configuration to connect to the docker server/engine:

    #You're using a TLS secured daemon : 
    set DOCKER_TLS_VERIFY=1
    
    # Precise the Docker Host IP and port, the TLS default is 2376
    set DOCKER_HOST=tcp://**:2376
    
    # The paths to the certificate and client key needed to authenticate to the daemon
    # You should have 3 files in this directory : ca.pem, cert.pem and key.pem 
    # In my case the default path looks like : 
    set DOCKER_CERT_PATH=C:\Users\**\.docker\machine\machines\default
    
    #the name of your Docker Host VM : 
    set DOCKER_MACHINE_NAME=default
    

    The docker documentation about TLS configuration : https://docs.docker.com/articles/https/

    I hope it helps ;)

提交回复
热议问题