You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stop_signal support was added to swarmkit in docker/swarmkit#1924 and docker in moby/moby#30754 but it is still not supported via docker stack deploy -c compose-file.yml stack_name.
It would be a welcome addition since some of our containers need SIGINT to properly exit.
If it's fine with you guys I could probably do a PR with this functionality.
Steps to reproduce the issue:
Add stop_signal: SIGINT to a docker-compose file
docker stack deploy -c <file> <name>
docker stack scale service=0
Describe the results you received:
The service gets a SIGTERM signal
Describe the results you expected:
The service gets a SIGINT signal
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 3dfb8343
Built: Sat Jul 8 20:56:41 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87617
Built: Sat Jul 8 22:56:56 2017
OS/Arch: linux/amd64
Experimental: false
Support for stop-signal was added to services in docker 17.04 through moby/moby#30754, and moby/moby#31091, so this should just be adding the option to the docker-compose file specs and cli
@salzig thanks! Looks like the documentation side changes never found their way in; see #388 (comment)
Are you interested in opening a pull request to make that change? There's an "edit this page" link on the top-right of that page in the documentation; that should open an editor on GitHub and you can open a pull-request from that 🤗
eMPee584
added a commit
to eMPee584/docker.github.io
that referenced
this issue
Mar 4, 2019
Description
stop_signal
support was added toswarmkit
in docker/swarmkit#1924 anddocker
in moby/moby#30754 but it is still not supported viadocker stack deploy -c compose-file.yml stack_name
.It would be a welcome addition since some of our containers need SIGINT to properly exit.
If it's fine with you guys I could probably do a PR with this functionality.
Steps to reproduce the issue:
stop_signal: SIGINT
to a docker-compose filedocker stack deploy -c <file> <name>
docker stack scale service=0
Describe the results you received:
The service gets a SIGTERM signal
Describe the results you expected:
The service gets a SIGINT signal
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
N/A
The text was updated successfully, but these errors were encountered: