Docker for Windows not working

后端 未结 19 866
自闭症患者
自闭症患者 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://*<docker_host_IP>*: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\*<username>*\.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 ;)

    0 讨论(0)
  • 2020-12-07 11:48

    Had the same issue as you showed and Just fixed it a few hours ago.

    All need to do is disable Hyper-V. Run a command prompt with administrator rights and run the following command:

    bcdedit /set hypervisorlaunchtype off
    

    Restart your PC, open virtualbox and delete default vm after relaunch, go back to docker quickstart terminal and put the following in command:

    docker run hello-world
    

    and you're done! Hope it solves your problem

    0 讨论(0)
  • 2020-12-07 11:54

    Delete and remove all old v.machines on your laptop: 1. Open VirtualBox, right click on 'default', Remove, 'Delete All files'. 2. Command Prompt (Run as Admin)> docker-machine rm default

    Uninstall Virtualbox, Docker toolbox and Git. Navigate to c:\Users\Vinita, and delete dirs. .docker and .Virtualbox CClean files and registry. Reboot.

    Cleaning is done.

    I. Download latest version of Docker tools for windows (1.10.2) from Docker Toolbox Right click on the downloaded file and 'Run as administrator' This will install - Docker Quickstart, Kitematic and Virtualbox.

    II. Download latest test build of VirtualBox (5.01.15-105696-win.exe) from Testbuilds – Oracle VM VirtualBox . Run as Administrator again.

    (You can ignore any warnings and overwrite on the already Docker-installed VirtualBox).

    So far, Nothing out of the ordinary. We just installed the software with Admin rights. Now, Control Panel>Network and Sharing Center>Change adapter settings: Right click VirtualBox Host-Only Network #2 for Properties. Check> VirtualBox NDIS6 Bridged Networking Driver. (If it is already checked, uncheck and check again.)

    You are done. This is the only fix that we have employed!

    Both Kitematic and Docker Quickstart should work now.

    Right click on Kitematic and Run as admin the first time. Tested on Windows 10.

    0 讨论(0)
  • 2020-12-07 11:58
    1. Update to the latest virtual box above 5.0.3
    2. Restart the system
    3. open virtual box and remove the default virtual machine
    4. open the docker quick start terminal
    5. run docker run hello-world

    And you are done.

    0 讨论(0)
  • 2020-12-07 11:59

    I fixed my issue by simply Removing the default VM in the VirtualBox manager, rebooting PC (just in case), and then re-running Docker Quickstart Terminal. That's it.

    Docker 1.8.2 and Virtual Box 5.0.4

    0 讨论(0)
  • 2020-12-07 11:59

    It sounds like the problem with virtual box, In my case, I have performed below steps to resolve the issue

    • Stop Docker machine by 'docker-machine stop'
    • Open Network and sharing Center in Windows OS
    • Click on Change Adapter settings
    • Disable the VirtualBox-Host Only Network
    • Start Docker machine by 'docker-machine start'
    0 讨论(0)
提交回复
热议问题