現(xiàn)象
運(yùn)行 Docker Quickstart Terminal
啟動(dòng)docker machine 成功
運(yùn)行 docker images
拋出如下錯(cuò)誤:
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/images/json: open //./pipe/docker_engine: The system cannot find the file specified.
原因
docker machine
相關(guān)的系統(tǒng)環(huán)境變量沒(méi)有添加成功
解決
運(yùn)行 docker-machine env default
輸出
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="C:\Users\admin\.docker\machine\machines\default"
export DOCKER_MACHINE_NAME="default"
# Run this command to configure your shell:
# eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env default)
執(zhí)行上面輸出的命令 添加系統(tǒng)變量即可
最后編輯于 :2017.12.04 04:36:47
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者