带有 blobfuse 或 Azure 存储 Blob 的 Azure 容器实例

Azure Container Instances with blobfuse or Azure Storage Blobs

我正在从 azure 容器注册表(azure cli and/or 门户)部署到 azure 容器实例。 Azure blobfuse(在 ubuntu 18)给我以下错误:

device not found, try 'modprobe fuse' first.

解决这个问题的方法是在启动容器时使用 --cap-add=SYS_ADMIN --device /dev/fuse 标志 (docker 运行):

can't open fuse device in a docker container when mounting a davfs2 volume

但是,ACI 不支持 --cap-add 标志:

https://social.msdn.microsoft.com/Forums/azure/en-US/20b5c3f8-f849-4da2-92d9-374a37e6f446/addremove-linux-capabilities-for-docker-container?forum=WAVirtualMachinesforWindows

AzureFiles 对于我们的场景来说太贵了。

关于如何从 ACI 中的 Docker Linux 容器使用 blobfuse 或 Azure Blob 存储(类似来自 nodejs)的任何建议?

不幸的是,似乎无法将 blobfuse 或 Azure Blob 存储装载到 Azure 容器实例。只有四种类型的卷可以挂载。你可以看看Azure Template for Azure Container Instance, it shows the whole property of the ACI. And you can see all the volume objects here

也许将来会支持我们可以挂载到 Docker 容器的其他卷。希望对您有所帮助。