Riofs - 未找到保险丝装置
Riofs - fuse device not found
我正在尝试 运行 riofs 在 docker 容器中,但是当我尝试 运行 riofs 时,出现以下错误:
fuse: device not found, try 'modprobe fuse' first
ERROR! Failed to mount FUSE partition !
ERROR! Failed to create FUSE fs ! Mount point: /path/to/dir
这是我的 DockerFile 的样子:
FROM ubuntu:16.04
RUN apt-get update -qq
RUN apt-get install -y \
build-essential \
gcc \
make \
automake \
autoconf \
libtool \
pkg-config \
intltool \
libglib2.0-dev \
libfuse-dev \
libxml2-dev \
libevent-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L https://github.com/skoobe/riofs/archive/v${VERSION}.tar.gz | tar zxv -C /usr/src
RUN cd /usr/src/riofs-${VERSION} && ./autogen.sh && ./configure --prefix=/usr && make && make install
WORKDIR /opt/riofs/bin
CMD ["bash"]
我需要添加运行时权限 SYS_ADMIN 因为 fuse 需要 mount/umount.
的权限
docker run -it --cap-add SYS_ADMIN --device /dev/fuse [IMAGE] bash
我正在尝试 运行 riofs 在 docker 容器中,但是当我尝试 运行 riofs 时,出现以下错误:
fuse: device not found, try 'modprobe fuse' first
ERROR! Failed to mount FUSE partition !
ERROR! Failed to create FUSE fs ! Mount point: /path/to/dir
这是我的 DockerFile 的样子:
FROM ubuntu:16.04
RUN apt-get update -qq
RUN apt-get install -y \
build-essential \
gcc \
make \
automake \
autoconf \
libtool \
pkg-config \
intltool \
libglib2.0-dev \
libfuse-dev \
libxml2-dev \
libevent-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L https://github.com/skoobe/riofs/archive/v${VERSION}.tar.gz | tar zxv -C /usr/src
RUN cd /usr/src/riofs-${VERSION} && ./autogen.sh && ./configure --prefix=/usr && make && make install
WORKDIR /opt/riofs/bin
CMD ["bash"]
我需要添加运行时权限 SYS_ADMIN 因为 fuse 需要 mount/umount.
的权限docker run -it --cap-add SYS_ADMIN --device /dev/fuse [IMAGE] bash