【问题标题】:Volume myvol specifies nonexistent driver azurefile卷 myvol 指定不存在的驱动程序 azurefile
【发布时间】:2021-07-14 07:16:31
【问题描述】:

Net 核心应用程序,我正在尝试安装 azure 文件共享。下面是我的 docker-compose 文件。

version: "3.9"
services:
  mountvolume:    
    container_name: mountvolume
    build:      
      context: .
      dockerfile: ./Dockerfile   
    ports:
      - "8080:80"
    volumes:
       - myvol:/Files/
volumes:
  myvol:
    driver: azurefile
    driver_opts:
      accountname: mystorageaccount28628
      accountkey: 2em0XONHCmgEE9m81Q/O0rTSGXf9giw==
      share: "acishare"
      remotepath: "aci/logs"

我在其中一个存储帐户中手动创建了名为 acishare 的文件共享。我已经给出了与上面相同的存储帐户的帐户名和密钥。我尝试 docker-compose up 并得到以下错误

ERROR: Volume myvol specifies nonexistent driver azure file

谁能帮我解决这个错误。同样在上面的卷部分中,我有字段 share 和 remotepath 所以 share 表示文件共享名称,但远程路径到底是什么意思?有人可以帮我弄清楚。任何帮助,将不胜感激。谢谢

【问题讨论】:

    标签: docker docker-compose docker-volume azure-storage-account


    【解决方案1】:

    我目前有同样的问题,经过一些研究,似乎 docker 的 azure 文件驱动程序插件已被删除。不过,在 docker 文档 (https://docs.docker.com/cloud/aci-integration/) 中仍然提到了它,但驱动程序拼写为 azure_file。 azure 文件插件的 Github 项目已被放弃https://github.com/Azure/azurefile-dockervolumedriver

    据我了解 MS Azure 文档,现在只有将容器部署在 azure (https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files) 中才能进行集成。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-17
      • 2018-11-17
      • 1970-01-01
      • 2010-10-25
      • 2013-09-15
      • 1970-01-01
      • 2014-11-09
      • 2023-01-03
      相关资源
      最近更新 更多