我是 docker 新手,我正在尝试在我的工作计算机上运行 boot2docker。我使用从办公室网络挂载主目录的用户帐户登录到运行 OS X 版本 10.10.1 (Yosemite) 的计算机。
我安装了 Docker v1.4.1https://github.com/boot2docker/osx-installer/releases https://github.com/boot2docker/osx-installer/releases以及适用于 OS X 主机的 VirtualBox 4.3.20https://www.virtualbox.org/wiki/Downloads https://www.virtualbox.org/wiki/Downloads
我按照 docker.com mac 安装说明进行操作,但没有得到预期的结果。
docker 终端出现这个错误:
bash-3.2$ /usr/local/bin/boot2docker init
Virtual machine boot2docker-vm already exists
bash-3.2$ /usr/local/bin/boot2docker up
error in run: Failed to start machine "boot2docker-vm" (run again with -v for details)
bash-3.2$ $(/usr/local/bin/boot2docker shellinit)
error in run: VM "boot2docker-vm" is not running.
bash-3.2$ docker version
Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 5bc2ff8
OS/Arch (client): darwin/amd64
FATA[0000] Get http:///var/run/docker.sock/v1.16/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
在 VirtualBox 上启动 boot2docker-vm 会返回以下错误:
Failed to open a session for the virtual machine boot2docker-vm.
NamedPipe#0 failed to bind to local socket
/Network/Servers/servername/Volumes/cal/Users/username/.boot2docker/boot2docker-vm.sock (VERR_NOT_SUPPORTED)
请尝试以下操作:
有些人报告了启动挂起的 boot2docker VM 时出现的问题,以下步骤通常已为我解决了该问题。
boot2docker delete
boot2docker download
boot2docker init
boot2docker up
如果这不起作用,请打开虚拟框并查看 boot2docker 虚拟机的状态。如果显示已保存,则从 UI 启动 VM,然后从菜单向其发送关闭信号。随后您应该能够从 boot2docker 启动和停止虚拟机。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)