Is there any way to use loop devices within docker container without switching on a privileged mode. It looks like there should be a way with adding capabilities, but even when I run container with flag --cap-add=ALL
I still get an error when I execute losetup -f
command:
[root@176f9063d3bb /]# losetup -f
losetup: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or 'modprobe loop'.)