Boot2Docker for OS X无法启动 [英] Boot2Docker for OS X fails to start

查看:244
本文介绍了Boot2Docker for OS X无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是docker的新手,我试图在我的工作电脑上运行boot2docker。我已经登录到运行OS X版本10.10.1(优胜美地)的计算机上,该用户帐户从办公网络安装主目录。



我安装了Docker来自 https://github.com/boot2docker/osx-installer/releases 的v1.4.1
和来自 https://www.virtualbox.org/wiki/Downloads 的适用于OS X主机的VirtualBox 4.3.20



我按照docker.com mac安装的说明进行操作,但我没有得到结果。



终端发出这个错误:

  bash-3.2 $ / usr / local / bin / boot2docker init 
虚拟机boot2docker- vm已经存在
bash-3.2 $ / usr / local / bin / boot2docker up
运行错误:无法启动机器boot2docker-vm(再次运行-v查看详细信息)
bash-3.2 $ $(/ usr / local / bin / boot2docker shellinit)
运行中的错误:VMboot2docker-vm是不运行
bash-3.2 $ docker版本
客户端版本:1.4.1
客户端API版本:1.16
转载版本(客户端):go1.3.3
Git提交(客户端):5bc2ff8
OS / Arch(客户端):darwin / amd64
FATA [0000]获取http:///var/run/docker.sock/v1.16/version:dial unix / var / run / docker.sock:没有这样的文件或目录。您是否尝试连接到不带TLS的启用TLS的守护程序?

在VirtualBox上启动boot2docker-vm会返回以下错误:

 无法打开虚拟机boot2docker-vm的会话。 

NamedPipe#0无法绑定到本地套接字
/Network/Servers/servername/Volumes/cal/Users/username/.boot2docker/boot2docker-vm.sock(VERR_NOT_SUPPORTED)


解决方案

最后,这个解决方案适用于我。我必须将VirtualBox VMs文件夹从我的网络主目录移动到本地机器并更改其权限。



所以在我的VirtualBox GUI上,在设置>存储下,我将文件位置从

网络/服务器/服务器名称/服务器/服务器名称/卷/计算机/用户/用户名/虚拟机虚拟机/ boot2docker.iso 
/网络/服务器/服务器名称/卷/ -vm / boot2docker-vm.vmdk



/ code> /应用程序/ VirtualBox VMs / boot2docker.iso
/应用程序/ VirtualBox VMs / boot2docker-vm / boot2docker-vm.vmdk

并在设置>端口



  /网络/服务器/服务器名称/卷/ cal /用户/用户名/ VirtualBox VMs / boot2docker-vm.sock 
/ pre>

to

  / Applications / VirtualBox VMs / boot2docker- vm.sock 

所以我认为这是一个目录和权限问题。


I am new to docker and I'm attempting to run boot2docker on my work computer. I'm logged in to the computer running OS X version 10.10.1 (Yosemite) with a user account that mounts the home directory from the office network.

I installed Docker v1.4.1 from https://github.com/boot2docker/osx-installer/releases and VirtualBox 4.3.20 for OS X hosts from https://www.virtualbox.org/wiki/Downloads

I followed the instructions on docker.com mac installation but I didn't get the supposed to be results.

The docker terminal gives this error:

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? 

Starting boot2docker-vm on VirtualBox returns the following error:

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)

解决方案

Finally, this solution worked for me. I have to move the VirtualBox VMs folder from my network home directory to my local machine and change their permissions.

So on my VirtualBox GUI, under Settings>Storage, I changed the file locations from

/Network/Servers/servername/Volumes/cal/Users/username/VirtualBox VMs/boot2docker.iso
/Network/Servers/servername/Volumes/cal/Users/username/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk

to

/Applications/VirtualBox VMs/boot2docker.iso
/Applications/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk

and under the Settings>Ports

from

/Network/Servers/servername/Volumes/cal/Users/username/VirtualBox VMs/boot2docker-vm.sock

to

/Applications/VirtualBox VMs/boot2docker-vm.sock

So I think it’s a directory and permission issue.

这篇关于Boot2Docker for OS X无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆