首页 > 解决方案 > 在 Azure 容器实例中安装卷时出错

问题描述

我正在尝试按照此链接Deploy container and mount volume - YAML上的教程安装卷。yaml文件的相关部分是

volumeMounts:
      - name: filesharevolume
        mountPath: /home/indy/.indy_client/wallet/ 
        readOnly: false
volumes:
  - name: filesharevolume
    azureFile:
      sharename: acishare
      readOnly: false
      storageAccountName: xxxxxxxxxx
      storageAccountKey: xxxxxxxxxx

我在容器日志中收到此错误

 Caused by: Unexpected sqlite error
  Caused by: database is locked

正在运行的容器内的文件夹

标签: azuredockerazure-container-instances

解决方案


ACI 挂载类似于 Docker 绑定挂载。您可以看到注释显示在您提供的链接和注释中。而且 ACI 没有控制挂载模式的功能。所以你猜,如果作业需要使用卷模式来挂载 Azure 文件共享,那么你无法通过 ACI 来实现。


推荐阅读