If Fuse container OOM'd, the pre-stop hook is not guaranteed to be executed, so we need a way to clean up the mount point so that users don't need to do that manually (log into the host machine and run sudo umount). User root is needed for calling umount before mounting.
Old behavior: no matter root or non-root, if there's OOM, fuse container cannot restart.
New behavior:
If not using root and there's no OOM, everything works as before. If there is OOM, umount line will error out and fuse container cannot restart.
If using root and there is OOM, fuse container can restart normally.
If Fuse container OOM'd, the pre-stop hook is not guaranteed to be executed, so we need a way to clean up the mount point so that users don't need to do that manually (log into the host machine and run sudo umount). User root is needed for calling umount before mounting.
Old behavior: no matter root or non-root, if there's OOM, fuse container cannot restart.
New behavior: If not using root and there's no OOM, everything works as before. If there is OOM, umount line will error out and fuse container cannot restart. If using root and there is OOM, fuse container can restart normally.