将 docker 个图像从 AWS 迁移到 Bluemix 或 Azure

Migration of docker image from AWS to Bluemix or Azure

我有一个关于 docker 的新手。我想知道是否可以将为 AWS 创建的 docker 图像导出到 Bluemix 或 Azure。我的 docker 图像包含一个 NodeJS 下的 websocket 服务器和一个 MongoDB 数据库。

感谢您的帮助

访问您的 aws 云并使用:

docker save -o image.tar image:1.0 #exporte docker image

完成后,访问您的新云并使用:

docker load -i image.tar #load your image to the new cloud

有了用于创建 AWS 容器的 docker 文件,您可以简单地使用它在 Bluemix 上使用 cf ic 客户端或 docker 本机客户端构建容器

遵循 Bluemix 的参考文档 docker cli

https://www.ng.bluemix.net/docs/containers/container_cli_reference_ov.html

https://www.ng.bluemix.net/docs/containers/container_cli_ov.html