如何将卷(Azure 文件共享)挂载到 Azure(容器的 Web 应用程序)上基于 bitnami 的 docker 图像?
How to mount a volume (Azure File Share) to a bitnami-based docker image on Azure (Web App for Container)?
我有来自 https://github.com/bitnami/bitnami-docker-matomo 的 Matomo Docker 图片,我 运行 在 Azure 上的容器 Web 应用程序中使用我自己的 Azure 容器注册表 (ACR)。
另外,我有一个带有可用文件共享的 Azure 存储帐户。
我想要实现的是将持久存储(来自 Az 存储帐户的文件共享)挂载到它,这样我就不会丢失 Matomo 安装的配置和插件。
我尝试使用装载存储(预览版),但无法正常工作。
姓名:matomo_data
存储类型:Azure 文件
挂载路径:/bitnami
描述如下:https://github.com/bitnami/bitnami-docker-matomo#persisting-your-application
这没有用。
我也尝试通过设置 WEBSITES_ENABLE_APP_SERVICE_STORAGE = true 在 Web App for Containers 上,但显然似乎也没有做任何事情。
我将不胜感激这里的任何提示,否则我将不得不制作自定义 docker 图像,将其推送到注册表,并使用自定义 docker 撰写文件,我想这样做避免。
非常感谢您对此的任何提示!
把Azure File Share挂载到Web App for Container,我觉得不是简单的持久化存储,而是一个share动作。请参阅下面的注意事项:
Linking an existing directory in a web app to a storage account will
delete the directory contents. If you are migrating files for an
existing app, make a backup of your app and its content before you
begin.
因此,如果您想将文件共享挂载到网络应用程序以持久存储,您需要先将所有需要的文件上传到文件共享。将 Azure 文件共享挂载到 Web 应用程序的步骤是 here。对于Windows显示,对于Linux也是一样。
但我建议您最好按照here的步骤使用持久存储。这种方式一开始会创建持久化存储,不会删除目录内容
我有来自 https://github.com/bitnami/bitnami-docker-matomo 的 Matomo Docker 图片,我 运行 在 Azure 上的容器 Web 应用程序中使用我自己的 Azure 容器注册表 (ACR)。
另外,我有一个带有可用文件共享的 Azure 存储帐户。
我想要实现的是将持久存储(来自 Az 存储帐户的文件共享)挂载到它,这样我就不会丢失 Matomo 安装的配置和插件。
我尝试使用装载存储(预览版),但无法正常工作。
姓名:matomo_data 存储类型:Azure 文件 挂载路径:/bitnami
描述如下:https://github.com/bitnami/bitnami-docker-matomo#persisting-your-application
这没有用。
我也尝试通过设置 WEBSITES_ENABLE_APP_SERVICE_STORAGE = true 在 Web App for Containers 上,但显然似乎也没有做任何事情。
我将不胜感激这里的任何提示,否则我将不得不制作自定义 docker 图像,将其推送到注册表,并使用自定义 docker 撰写文件,我想这样做避免。
非常感谢您对此的任何提示!
把Azure File Share挂载到Web App for Container,我觉得不是简单的持久化存储,而是一个share动作。请参阅下面的注意事项:
Linking an existing directory in a web app to a storage account will delete the directory contents. If you are migrating files for an existing app, make a backup of your app and its content before you begin.
因此,如果您想将文件共享挂载到网络应用程序以持久存储,您需要先将所有需要的文件上传到文件共享。将 Azure 文件共享挂载到 Web 应用程序的步骤是 here。对于Windows显示,对于Linux也是一样。
但我建议您最好按照here的步骤使用持久存储。这种方式一开始会创建持久化存储,不会删除目录内容