我可以 Copy/Paste Azure 容器实例 (Windows) 中的文件到外部存储吗?

Can I Copy/Paste the files inside an Azure container instance (Windows) to an external storage?

我正在尝试在 Azure 上容器化我现有的应用程序 (.net)。我希望能够更改我的 web.config 文件,一旦应用程序托管在容器上而无需重建整个图像。我使用的图像将是基于 Windows 的 docker 图像。根据在线提供的文档,基于 Windows 的实例不直接支持 Azure 文件共享,是否有我可以使用的解决方法?

不幸的是,ACI 中的持久卷仅适用于 Linux。因此,如果您的 ACI 是基于 Windows 的,您似乎不能为其使用持久卷,至少现在是这样。

对于具有持久卷的基于 Windows 的容器,我建议您可以在其上创建 Azure Windows VM 和 运行 Docker。然后,您还可以使用持久卷创建基于 Windows 的容器。

而且你可以mount the Azure File Share to the Windows VM and then create volume in it, in the end, create your Windows-based container with the volume. See the sample Working with Windows Containers and Docker: Save the Data