【问题标题】:How to mount an Azure 'App Service Folder' to a docker container?如何将 Azure“应用服务文件夹”挂载到 docker 容器?
【发布时间】:2020-02-20 02:50:44
【问题描述】:

我在本地启动容器 docker run -it -p 80:5000 --name myApp -v P:\myPath\myData:/myData

如何从 azure 挂载应用服务文件夹?

【问题讨论】:

  • 我无法清楚地理解您的问题。天蓝色的应用服务文件夹是什么意思?你想安装在哪里?

标签: azure docker


【解决方案1】:

我必须使用以下行来调整 Dockerfile:

# this map's the azure App Service folder to the container.
RUN ln -s /home/myData /myDataOnTheContainer

并且应用程序设置中的WEBSITES_ENABLE_APP_SERVICE_STORAGE设置必须设置为true

【讨论】:

    猜你喜欢
    • 2016-09-18
    • 1970-01-01
    • 2020-11-17
    • 2021-03-28
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    • 2020-10-30
    相关资源
    最近更新 更多