【问题标题】:Is there any way to run MobileFirst Platform Foundation Docker (IBM Containers) images on a local Docker instance?有没有办法在本地 Docker 实例上运行 MobileFirst Platform Foundation Docker(IBM 容器)映像?
【发布时间】:2015-09-04 10:48:25
【问题描述】:

我按照以下步骤创建了 MobileFirst Platform Foundation 的映像:

Run IBM MobileFirst Platform Foundation on IBM Containers

以上步骤将图像推送到 Bluemix 并启动它。但我想在我的 docker-machine 上使用该映像,尤其是用于故障排除(与 docker 命令相比,ic/ice 命令受到限制,有时我无法通过 ssh 访问 IBM 容器)。

但是 mobilefirst 基础镜像使用了 bluemix 数据库服务,所以也许我们需要一些环境变量,比如 VCAP?

【问题讨论】:

标签: ibm-mobilefirst ibm-cloud


【解决方案1】:

如果您的图像使用Bluemix 服务数据库,我不是您可以做的。也许您应该在本地映像运行期间切换到本地数据库。

上次尝试这样做时,采取了以下步骤:

  1. 运行docker images 列出存储库中的可用图像及其ID、标签等...

  2. 要在本地容器上启动映像,请运行:docker run -d -p 9080:9080 -p 9443:9443 <image ID>

  3. 要验证映像配置正确且 MobileFirst 项目运行时可用,请通过加载以下 URL 启动 MobileFirst 控制台:http://192.168.59.103:9080/worklightconsole

同样,这些命令可能不同。希望它适用于您的情况。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-06
    • 1970-01-01
    • 1970-01-01
    • 2022-01-26
    • 1970-01-01
    相关资源
    最近更新 更多