macos - OSX 上的 Docker : How to start boot2docker in one shell and use it in another

标签 macos docker init

使用 boot2docker start 初始化后,只有特定的终端才能使用 docker 命令。没有其他选项卡,没有其他程序。

在 Emacs 中,每次调用时,我都想在新进程中执行构建和运行命令。事实上,我每次都必须启动 boot2docker init,这使得这是不可能的。

我也厌倦了每次导出,我知道其他人也一定非常沮丧,所以我希望有人找到解决方案?

最佳答案

如果 boot2docker 在每个 shell 中的路径上,那么您可以

eval "$(boot2docker shellinit)"

根据 https://github.com/boot2docker/boot2docker/blob/master/README.md#tls-support

关于macos - OSX 上的 Docker : How to start boot2docker in one shell and use it in another,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29478727/

相关文章:

macos - iOS 上运行的问题

javascript - Deno 和 Docker 如何监听 SIGTERM 信号并关闭服务器

mysql - 获取 SequelizeConnectionRefusedError : when running docker with sequelize

python - 如何: safely call super constructors with different arguments

c++ - 在构造之前调用实例上的非成员函数

linux-kernel - 为什么在内核模块编程中使用__exit?

xcode - 如何在 Xcode 中跳过开发构建的代码签名?

windows - 在 Windows 和 OSX 之间自动同步剪贴板

objective-c - 从cocoa应用程序检查Mac上是否存在应用程序

python-3.x - 将外部文件挂载到Docker容器中