有没有办法将 bluemix 设置为 $DOCKER_HOST 并将其与 docker 二进制文件一起使用?
Is there a way to setup bluemix as $DOCKER_HOST and use it with the docker binary?
我正在尝试使用 Bluemix 运行 在 docker 中自动构建。我的 CI 系统已经可以使用正常的 docker cli 并结合 DOCKER_HOST 环境变量,我可以在其他机器上执行 运行 docker 命令。
有没有办法将 docker 二进制文件连接到 Bluemix?或者 cf cli 旁边的另一个 API 来启动和停止 Bluemix 上的容器?
是的,您可以将正常的 Docker CLI 与 IBM Containers 一起使用。
当您运行 $ cf ic login 命令时,下面的文本会为您提供详细信息。
Option 2) Leverage the docker CLI directly. In this shell, override local docker environment to connect to IBM Containers by setting these variables, copy and paste the following:
Notice: only commands with an asterisk(*) are supported within this option
export DOCKER_HOST=tcp://containers-api.ng.bluemix.net:8443
export DOCKER_CERT_PATH=/Users/username/.ice/certs
export DOCKER_TLS_VERIFY=1
我正在尝试使用 Bluemix 运行 在 docker 中自动构建。我的 CI 系统已经可以使用正常的 docker cli 并结合 DOCKER_HOST 环境变量,我可以在其他机器上执行 运行 docker 命令。 有没有办法将 docker 二进制文件连接到 Bluemix?或者 cf cli 旁边的另一个 API 来启动和停止 Bluemix 上的容器?
是的,您可以将正常的 Docker CLI 与 IBM Containers 一起使用。
当您运行 $ cf ic login 命令时,下面的文本会为您提供详细信息。
Option 2) Leverage the docker CLI directly. In this shell, override local docker environment to connect to IBM Containers by setting these variables, copy and paste the following: Notice: only commands with an asterisk(*) are supported within this option export DOCKER_HOST=tcp://containers-api.ng.bluemix.net:8443 export DOCKER_CERT_PATH=/Users/username/.ice/certs export DOCKER_TLS_VERIFY=1