I have to mount the s3 bucket over docker container so that we can store its contents in an s3 bucket.
I found video which shows how to do the same process for ec2 instance instead of a docker container. I am following the same steps as mentioned in the above link. Likewise, I have done the following things on the docker container:
(Install FUSE Packages)
apt-get install build-essential gcc libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support pkg-config libxml++2.6-dev libssl-dev
git clone .
cd s3fs-fuse
./autogen.sh
./configure
make
make install

(Ensure you have an IAM Role with Full Access to S3)

(Create the Mountpoint)
mkdir -p /var/s3fs-demo-fs

(Target Bucket)
aws s3 mb s3://s3fs-demo-bkt

But when I trying to mount the s3 bucket using s3fs s3fs-demo-bkt /var/s3fs-demo-fs -o iam_role=

I am getting the following messege fuse: device not found, try 'modprobe fuse' first

I have looked over several solutions for this problem. But I am not able to resolve this issue. Please let me know how I can solve it.

1 Answer

I encountered the same problem. But later the issue was fixed by adding --privileged when running the docker run command

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.