valum icon indicating copy to clipboard operation
valum copied to clipboard

Cannot send SIGTERM to service in Docker container

Open arteymix opened this issue 8 years ago • 3 comments

We have right to the following error when sending a SIGTERM to a running docker container.

GLib-WARNING **: poll(2) failed due to: Operation not permitted.

arteymix avatar Jul 26 '16 16:07 arteymix

I investigated this and it seems we can still send a SIGTERM via docker stop, it just doesn't play well via the pseudo-TTY.

This can wait for a patch release.

arteymix avatar Oct 26 '16 17:10 arteymix

^C works fine when my Dockerfile contains:

ENTRYPOINT /app/bin/app --any --port 3003

but it doesn't do anything when my Dockerfile contains:

ENTRYPOINT ["/app/bin/app", "--any", "--port", "3003"]

notanimposter avatar Feb 27 '22 23:02 notanimposter

The difference here is that your option implies using a shell for running the command. Ideally VSGI should handle SIGTERM properly.

arteymix avatar Feb 28 '22 16:02 arteymix