borgbase / vorta-docker

Run Vorta inside Docker and access over VNC
https://vorta.borgbase.com
GNU General Public License v3.0
21 stars 2 forks source link

Add fuse support? #6

Closed Sdub76 closed 2 years ago

Sdub76 commented 2 years ago

I'm not able to mount a backup to extract files from an archive because this docker doesn't include FUSE support. Would be a nice addition, since Vorta is only semi-useful without the ability to restore.

Ranbato commented 2 years ago

I have started looking into this , but I can't test it locally as my NAS doesn't support FUSE . Happy to have someone try out an image though. Also, it looks like it will require granting sysadmin privileges to the Vorta docker container. At a minimum, --cap-add SYS_ADMIN --device /dev/fuse

Ranbato commented 2 years ago

OK, I have it working locally using --privileged but that is a REALLY BAD IDEA. I also have it working with --cap-add SYS_ADMIN --security-opt apparmor=unconfined which is much less risky but not fantastic.

It sounds to me like the exact parameter required will depend on the kernel version you are running on your Docker host.

Would like to have a few people try it before I push it out generally.

Sdub76 commented 2 years ago

Do you have a branch I can pull to test?

It might not be a showstopper to use privileged if you only enable the option in the relatively rare case you need to restore something.

Ranbato commented 2 years ago

https://github.com/borgbase/vorta-docker/tree/fuse-support

m3nu commented 2 years ago

Awesome! When you're done, open a PR, so the changes are easier to see.