FUSE inside Docker

前端 未结 3 1339
南旧
南旧 2021-01-31 04:54

I\'m trying to install and use FUSE inside a Docker container. My Dockerfile is the following:

FROM golang:1.8

WORKDIR /go/src/app
COPY . .

RUN apt-get update          


        
3条回答
  •  执笔经年
    2021-01-31 05:17

    Just as a workaround you can do the modprobe fuse on your host, then using --device /dev/fuse to get the device in the container. Anyway container should be started in privileged mode to mount things with the /dev/fuse.

    The command to run the docker image is:

    docker run -d --rm --device /dev/fuse --privileged 
    

提交回复
热议问题