[BUG] Cannot terminate/signal `ffmpeg` process in container
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
It is not possible to signal the ffmpeg process inside the container (probably because of the wrapper shell script).
This is required for cleanly terminating ffmpeg inside the container (and the container) itself (ffmpeg handling disconnections, etc.).
Expected Behavior
Process signals correctly passed to ffmpeg process inside container.
Steps To Reproduce
- Start a container from
linuxserver/ffmpegimage. - Use
docker killto send a signal toffmpegto cleanly shut down. - Note that the signal is not handled,
ffmpegand the container continues running. - Attach shell in running container.
- Send termination signal using
Ctrl+c, note that it is not handled byffmpegbut by shell script/Docker instead.
Environment
- OS: `Ubuntu 22.04.5 LTS`
- How docker service was installed: By official `docker` package.
Docker creation
Default docker run test command.
Container logs
got 3 SIGTERM/SIGINTs, forcefully exiting
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Can you give this test image a try?
lsiodev/ffmpeg:7.0.2-cli-pkg-85b1e43f-dev-2f3a3ee9b1d99fb5cdad454804a22c6759218881
Built off of https://github.com/linuxserver/docker-ffmpeg/tree/exec
@aptalca: Yes, this fixed the issue. Ctrl+C terminates ffmpeg.