将 Docker 个多容器应用程序迁移到 Azure

Migrate Docker multi-container app to Azure

我有一个 Linux CentOS 主机 运行 Docker 带有多个容器的 Ce 运行 一些多容器应用程序(使用 docker-compose 的网络应用程序),我想将这些容器迁移到 Azure Containers 无服务器平台。

我如何迁移所有这些容器和卷?

创建 Azure 容器注册表并将容器推送到该注册表会移动数据量吗?或者迁移过程如何?

谢谢

Making an Azure container registry and push the containers to that registry will move the data volumes?

不,将图像推送到 Azure 容器注册表只是推送图像,而不是装载到容器的卷。

How can I migrate all those containers with the volumes?

您只需使用 ACI via docker-compose to deploy the YAML to the ACI without the local volumes. You can try to upload the files to the Azure File Share 并将文件共享挂载到每个实例即可。

我没有使用 Azure 容器实例,而是使用了 Azure WebApps for Containers。