nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
196 stars 14 forks source link

FFmpegfs no longer detects Docker #112

Closed nschlia closed 2 years ago

nschlia commented 2 years ago

FMmpegfs no longer detects that it is running under Docker, reason see https://stackoverflow.com/questions/69002675/on-debian-11-bullseye-proc-self-cgroup-inside-a-docker-container-does-not-sho (thanks to @igor-epam for providing the link).

Probably until Debian is updated, there should be a different way to disable the mount check. Currently it is always done, unless a Docker container is detected. Because the check fails, FFmpegfs refuses to start.

A new command line parameter would help: --nomountcheck

If present, no check is done, and the binary will start.

Also see issue #79

nschlia commented 2 years ago

Here's a quick solution: https://stackoverflow.com/questions/68816329/how-to-get-docker-container-id-from-within-the-container-with-cgroup-v2 Add --cgroupns host to the run command.