简体   繁体   English

在OSX中使用boot2docker

[英]Using boot2docker in OSX

i need little hlp with docker in osx, everything works fine with boot2docker but a need to forward ssh-agent socket to docker container. 我在osx中​​需要与docker一起使用的hlp,在boot2docker上一切正常,但是需要将ssh-agent套接字转发到docker容器。 When I forward /private/tmp to docker container with -v switch I can not see content of $SSH_AUTH_SOCKET 当我使用-v开关将/ private / tmp转发到docker容器时,我看不到$ SSH_AUTH_SOCKET的内容

thx Marek 马尔克斯

Currently, the OSX boot2docker setup only works for folders under /Users/ , so your folder will be inside your boot2docker container, not on your client. 当前,OSX boot2docker设置仅适用于/Users/下的文件夹,因此您的文件夹将位于boot2docker容器内,而不位于客户端上。

Your best option is probably to modify the location of the ssh-agent socket file. 最好的选择可能是修改ssh-agent套接字文件的位置。 ssh-agent has an -a option which might be worth looking into. ssh-agent有一个-a选项,可能值得研究。

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

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