lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
330 stars 114 forks source link

Cannot mount backups in container, fuse issues #64

Closed jjlawren closed 2 years ago

jjlawren commented 3 years ago

I haven't been able to get restic mount to work properly inside of the container. It seems like fuse isn't able to load the module as expected:

$ docker exec -it restic sh
/ # restic mount /mnt/restic/
repository 1bcd9682 opened successfully, password is correct
fusermount: exit status 1
also, the following messages were logged by a library:
2021/04/29 14:53:53 mount helper error: fusermount: fuse device not found, try 'modprobe fuse' first
unable to umount (maybe already umounted or still in use?): exit status 1: fusermount: failed to clone namespace: Operation not permitted
/ # modprobe fuse
modprobe: can't change directory to '/lib/modules': No such file or directory
niondir commented 3 years ago

Did you start your container with privileged: true?

If not and it solves the issue, we should add this to the readme.

On my instance with privileged mode it works.

niondir commented 2 years ago

I assume it works.