本文介绍了boot2docker shellinit命令最后出错错误请求套接字:退出状态255“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据的说明,在OSX上安装boot2docker。之后启动了应用程序。在终端中,启动boot2docker shellinit命令,最后抛出此错误请求套接字:退出状态255。尝试boot2docker停止--->删除--->下载---> init ---> up。没有帮助我使用的版本是v1.3.1。任何想法为什么它可能失败?谢谢!

Installed boot2docker on OSX, as per instructions of http://boot2docker.io/. After that started the application. In a terminal, boot2docker shellinit command started and ended up in throwing this error "Error requesting socket: exit status 255". Tried boot2docker stop--->delete--->download--->init--->up . It didn't help. The version I used is v1.3.1. Any ideas why it might have failed? Thanks!

推荐答案

最后这个解决方案适用于我。看来,我们的主机文件(位置是/ etc / hosts)中必须将localhost分配给127.0.0.1。以下行应该在/ etc / hosts中。

Finally this solution worked for me. It seems like, it is mandatory to have the localhost assigned to 127.0.0.1 in our hosts file(location is /etc/hosts). The following line should be there in /etc/hosts

127.0.0.1 localhost

并执行以下操作。最后,按照控制台显示分配变量。

And do the following. At the end, assign variables as the console shows.

boot2docker init
boot2docker下载
boot2docker up

这篇关于boot2docker shellinit命令最后出错错误请求套接字:退出状态255“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 21:42