Skip to content

Commit

Permalink
Closes #112: add --cgroupns host to Docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
nschlia committed Jan 4, 2022
1 parent 0156a83 commit 2b9c3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -337,6 +337,7 @@ FFmpegfs can run under Docker. To build a container for FFmpegfs a Dockerfile is
Depending on the machine speed, this will take quite a while. After the command completed, the container can be started with

docker run --rm \
--cgroupns host \
--name=ffmpegfs \
--device /dev/fuse \
--cap-add SYS_ADMIN \
Expand Down
2 changes: 1 addition & 1 deletion src/ffmpeg_utils.cc
Expand Up @@ -2228,7 +2228,7 @@ bool detect_docker(void)

if (fgets(line, sizeof line, fp) != nullptr)
{
p = strstr(line, "/docker/");
p = strstr(line, "/docker");
}
fclose(fp);

Expand Down

0 comments on commit 2b9c3aa

Please sign in to comment.