[GH-ISSUE #150] The dufs docker image does not terminate properly #72

Closed
opened 2026-04-08 16:50:10 +03:00 by zhus · 3 comments
Owner

Originally created by @sprat on GitHub (Dec 9, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/150

Problem

The dufs docker image does not terminate properly: the dufs server seems to shutdown only with the Ctrl+C (SIGINT) signal, but docker send a SIGTERM signal to stop the process by default. Since the process does not shut down, docker send a SIGKILL signal after 10s which stops the process without any cleanup.

Either dufs should react to the SIGTERM signal, or the dufs docker image should specify a SIGINT signal as stop signal (via the STOPSIGNAL directive in the Dockerfile).

Log

When I stop the container, it takes 10s to shutdown instead of shutting down immediately.

Environment:

  • Dufs version: 0.31.0
  • Browser/Webdav Info: NA
  • OS Info: docker image on amd64 host
Originally created by @sprat on GitHub (Dec 9, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/150 **Problem** The dufs docker image does not terminate properly: the dufs server seems to shutdown only with the Ctrl+C (SIGINT) signal, but docker send a SIGTERM signal to stop the process by default. Since the process does not shut down, docker send a SIGKILL signal after 10s which stops the process without any cleanup. Either dufs should react to the SIGTERM signal, or the dufs docker image should specify a SIGINT signal as stop signal (via the STOPSIGNAL directive in the Dockerfile). **Log** When I stop the container, it takes 10s to shutdown instead of shutting down immediately. **Environment:** - Dufs version: 0.31.0 - Browser/Webdav Info: NA - OS Info: docker image on amd64 host
zhus closed this issue 2026-04-08 16:50:10 +03:00
Author
Owner

@sprat commented on GitHub (Dec 9, 2022):

Note: I can file a pull request adding the STOPSIGNAL directive if you agree with the approach

<!-- gh-comment-id:1343475390 --> @sprat commented on GitHub (Dec 9, 2022): Note: I can file a pull request adding the STOPSIGNAL directive if you agree with the approach
Author
Owner

@sigoden commented on GitHub (Dec 9, 2022):

welcome to submit a pr to add STOPSIGNAL directive to Dockerfile.

<!-- gh-comment-id:1344263736 --> @sigoden commented on GitHub (Dec 9, 2022): welcome to submit a pr to add STOPSIGNAL directive to Dockerfile.
Author
Owner

@sprat commented on GitHub (Dec 9, 2022):

done ;)

<!-- gh-comment-id:1344314882 --> @sprat commented on GitHub (Dec 9, 2022): done ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#72