The error really bothers. I hope the developers of Docker do something. It took a lot of attempts and mistakes. Thanks to Stackoverflow and other blogs. In my case, I am using Windows 10 Pro. I installed with DockerToolbox.exe after several unsuccessful attempts with Docker for Windows Installer.exe. Then I came across An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v . These steps were followed and the problem was resolved. First, I went to Control Panel -> Turn Windows Features On or Off and Disable Hyper-V
Next, Open PowerShell as an administrator:
docker-machine env --shell=powershell | Invoke-Expression type bcdedit /set hypervisorlaunchtype auto
Rebooting my system. Then I launched the "Docker Quickstart Terminal", then I entered this into the shell window.
run "Docker for Windows" docker run hello-world
Everything worked out for me. Then open command prompt
docker run hello-world
He gave an 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 are also helpful.
Nditah Oct 10 '17 at 2:31 on 2017-10-10 14:31
source share