Error loading image from docker engine: error during connect: (Windows 10 Pro)
Closed this issue · 3 comments
YuK1Game commented
Hi.
I use it in windows 10.
$ img2lambda -i lambda-tesseract-ocr_tesseract:latest -r ap-northeast-1 -o
./output
2019/10/16 10:24:00 Parsing the docker image docker-daemon:lambda-tesseract-ocr_tesseract:latest
2019/10/16 10:24:00 Error loading image from docker engine: error during connect: Get https://%2F%2F.%2Fpipe%2Fdocker_engine/v1.22/images/get?names=lambda-tesseract-ocr_tesseract%3Alatest: dial tcp: lookup //./pipe/docker_engine: no such host
And the environment variable sets the value.
$ echo %DOCKER_HOST%
tcp://localhost:2375
How can I verify the validity of the tcp://localhost:2375
?
thanks.
YuK1Game commented
$ img2lambda -v
img2lambda version 1.0.0 (b884494)
$ set DOCKER_HOST=tcp://localhost:2375 && img2lambda -i lambda-tesseract-ocr_tesseract:latest -r ap-northeast-1 -o ./output
2019/10/16 12:30:48 Parsing the image docker-daemon:lambda-tesseract-ocr_tesseract:latest
2019/10/16 12:30:48 Error loading image from docker engine: error during connect: Get https://%2F%2F.%2Fpipe%2Fdocker_engine/v1.22/images/get?names=lambda-tesseract-ocr_tesseract%3Alatest: dial tcp: lookup //./pipe/docker_engine: no such host
more one
YuK1Game commented
Somehow it started to move.
YuK1Game commented
VS Code did not read the updated DOCKER_HOST
.
After restarting VS Code, there was no problem.