Docker commands fails (in Windows)

前端 未结 25 2446
-上瘾入骨i
-上瘾入骨i 2020-12-23 02:26

I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can\'t seem to interact with

25条回答
  •  粉色の甜心
    2020-12-23 03:00

    The error is really troubling. I hope Docker Developers do something about. It took a lot of try and error to get around. Thanks to Stackoverflow and other blogs. In my case, I am using Windows 10 Pro. I settled with DockerToolbox.exe after several failed attempts with Docker for Windows Installer.exe. Then I encountered An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v . The followed these steps and the problem got solved. First, I went to Control Panel -> Turn Windows Features On or Off and unchecked Hyper-V
    Next, Open PowerShell as Admin:

    docker-machine env --shell=powershell | Invoke-Expression
    type bcdedit /set hypervisorlaunchtype auto
    

    Restarted my System. Then I launched "Docker Quickstart Terminal", then I entered this on the shell window.

    run "Docker for Windows"
    docker run hello-world
    

    I it went well. Then I open Command Prompt

    docker run hello-world
    

    It gave the error: Then I entered

    set DOCKER_CERT_PATH=%USERPROFILE%\.docker\machine\machines\default
    set DOCKER_HOST=tcp://192.168.99.100:2376
    set DOCKER_MACHINE_NAME=default
    set DOCKER_TLS_VERIFY=1
    

    Most of the suggestions above too are helpful.

提交回复
热议问题