【问题标题】:Error while mounting volume in azure container instance在 Azure 容器实例中安装卷时出错
【发布时间】:2021-01-01 23:14:11
【问题描述】:

我正在尝试按照此链接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

【问题讨论】:

  • 你可以分享你使用的 YAML 文件吗?
  • @CharlesXu 如果我在 docker 中执行 --mount type=volume 比在 docker 中工作但 --mount type=bind 在 docker 中给出相同的错误,所以我的猜测是卷挂载是类型按照 azure 链接的注释中指定的方式在 azure 中绑定,所以有什么方法可以让挂载类型成为 azure 中的卷
  • 是的,你是对的。 ACI 挂载类似于 Docker 绑定挂载。但是ACI目前没有控制挂载模式的功能。
  • @CharlesXu 那么还有其他挂载方式吗?也感谢您的确认。

标签: azure docker azure-container-instances


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2021-09-25
    • 1970-01-01
    • 1970-01-01
    • 2018-07-23
    • 2021-04-27
    • 2021-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多