Docker 工具箱设置在 Windows 8.1 上失败
Docker Toolbox setup fails on Windows 8.1
安装 Docker 工具箱后(我相信是成功的),我收到以下错误:
$ docker ps
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
此外,当我尝试 运行 docker 快速启动终端时,它只打印以下错误:
Docker Machine is not installed. Please re-run the Toolbox Installer and try aga
in.
Looks like something went wrong in step 'Looking for vboxmanage.exe'... Press an
y key to continue...
我搜索了 docker 疑难解答,但没有找到任何提示。
我尝试在选中和不选中 "Install VirtualBox with NDIS5 driver [default NDIS6]"
复选框的情况下安装工具箱。
我也遇到了一些像你一样的问题,我按照 window 8.1 中的以下步骤解决了问题。
- 安装Docker工具箱
重新生成证书
$ docker-machine regenerate-certs default
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
创建新机器默认值
$ docker-machine create default
Note: It may take a few minutes for downloading boot2docker.iso file.
- 升级docker-机器(可选)
$ docker-machine upgrade
- START Docker Quickstart Terminal (or) 运行 start.sh 位置下的文件=> C:\Program Files\Docker Toolbox
- 运行地狱世界
$ docker run hello-world
希望对您有所帮助:-)
试试这个,
检查 docker 机器是否存在。命令检查下面。
docker-machine ls
如果仍然出现错误,请执行下面的步骤 2。如果您看到列出的任何机器并且它 STATE
已停止,则执行 docker-machine start machine_name
例如。 docker-machine start default
此步骤帮助您创建 docker-机器。
docker-machine create --driver virtualbox default
安装 Docker 工具箱后(我相信是成功的),我收到以下错误:
$ docker ps
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
此外,当我尝试 运行 docker 快速启动终端时,它只打印以下错误:
Docker Machine is not installed. Please re-run the Toolbox Installer and try aga
in.
Looks like something went wrong in step 'Looking for vboxmanage.exe'... Press an
y key to continue...
我搜索了 docker 疑难解答,但没有找到任何提示。
我尝试在选中和不选中 "Install VirtualBox with NDIS5 driver [default NDIS6]"
复选框的情况下安装工具箱。
我也遇到了一些像你一样的问题,我按照 window 8.1 中的以下步骤解决了问题。
- 安装Docker工具箱
重新生成证书
$ docker-machine regenerate-certs default
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
创建新机器默认值
$ docker-machine create default
Note: It may take a few minutes for downloading boot2docker.iso file.
- 升级docker-机器(可选)
$ docker-machine upgrade
- START Docker Quickstart Terminal (or) 运行 start.sh 位置下的文件=> C:\Program Files\Docker Toolbox
- 运行地狱世界
$ docker run hello-world
希望对您有所帮助:-)
试试这个,
检查 docker 机器是否存在。命令检查下面。
docker-machine ls
如果仍然出现错误,请执行下面的步骤 2。如果您看到列出的任何机器并且它 STATE
已停止,则执行 docker-machine start machine_name
例如。 docker-machine start default
此步骤帮助您创建 docker-机器。
docker-machine create --driver virtualbox default