简体   繁体   English

Mac上的Boot2Docker-返回bsdthread_register错误

[英]Boot2Docker on Mac - Returns bsdthread_register error

I have just installed Boot2Docker 1.2.0 on Mac OSX 10.9.4. 我刚刚在Mac OSX 10.9.4上安装了Boot2Docker 1.2.0。 When I run any boot2docker command, I get this error: 当我运行任何boot2docker命令时,都会出现此错误:

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x522c75)
    /usr/src/go/src/pkg/runtime/panic.c:520 +0x69
runtime.goenvs()
    /usr/src/go/src/pkg/runtime/os_darwin.c:88 +0x62
runtime.schedinit()
    /usr/src/go/src/pkg/runtime/proc.c:164 +0x76
_rt0_go()
    /usr/src/go/src/pkg/runtime/asm_amd64.s:91 +0x114

I also tried using Boot2Docker 1.1.2 with the same problem. 我还尝试了使用Boot2Docker 1.1.2的同样问题。 Can somebody give me a pointer on where to look? 有人可以给我指点一下吗?

Thanks, Suriyanto 谢谢,苏里扬托

If running boot2docker from the command line try issuing this command first: 如果从命令行运行boot2docker,请尝试首先发出以下命令:

unset DYLD_INSERT_LIBRARIES

Sometimes other programs that have been installed on the system inject themselves into other programs dynamically causing errors like this. 有时,系统上已安装的其他程序会自动将自身注入其他程序,从而导致此类错误。 unset DYLD_INSERT_LIBRARIES prevent insertion of such dynamic objects from being added to a program at run time. unset DYLD_INSERT_LIBRARIES阻止在运行时将此类动态对象的插入添加到程序中。

After spending half a day on this, I decided to install boot2docker through Homebrew and it works. 花了半天时间后,我决定通过Homebrew安装boot2docker,并且可以正常工作。 For steps on installing it through Brew, refer to: 有关通过Brew安装的步骤,请参阅:

http://blog.javabien.net/2014/03/03/setup-docker-on-osx-the-no-brainer-way/ . http://blog.javabien.net/2014/03/03/setup-docker-on-osx-the-no-brainer-way/

Not necessarily the answer, but this will help anybody in the future from getting stucked. 不一定是答案,但这将在将来帮助任何人避免卡住。

我在尝试安装时遇到了同样的问题,您可以尝试使用sudo命令安装它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM