【发布时间】: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