【问题标题】:How to mount an Arvados FUSE to a Docker container as volume如何将 Arvados FUSE 作为卷挂载到 Docker 容器
【发布时间】:2021-07-02 03:53:20
【问题描述】:

我想将Arvados Keep 的文件系统视图添加到 Docker 容器。我使用arv-mount 创建了这个文件系统视图,它基于用户空间中的文件系统 (FUSE)。

方法 1

$ docker run --rm -it -v /home/test/arv:/opt ubuntu:hirsute bash
docker: Error response from daemon: error while creating mount source path '/home/test/arv': mkdir /home/test/arv: file exists.

方法 2
我也试过bind mounts

$ docker run --rm -it --mount type=bind,source=/home/test/arv,target=/opt,bind-propagation=rshared ubuntu:hirsute bash
docker: Error response from daemon: invalid mount config for type "bind": stat /home/test/arv: permission denied.

我作为非 root 用户(我为 non-root users 配置 Docker)和 root 用户尝试了两种方法。

【问题讨论】:

    标签: docker fuse


    【解决方案1】:

    我让它工作了

    1. user_allow_other 添加到/etc/fuse.conf
    2. 使用arv-mount --allow-other /home/test/arv 创建 FUSE 安装

    【讨论】:

      猜你喜欢
      • 2021-09-17
      • 1970-01-01
      • 2017-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-08
      • 2017-08-14
      • 2021-01-13
      相关资源
      最近更新 更多