如何将 Arvados FUSE 作为卷挂载到 Docker 容器

问题描述

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

方法

$ 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 用户的身份尝试了两种方法

解决方法

我让它工作了

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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...