-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create/run: remove default --stop-signal #3245
Conversation
c6705b0
to
8197e8e
Compare
Codecov Report
@@ Coverage Diff @@
## master #3245 +/- ##
=======================================
Coverage 57.98% 57.98%
=======================================
Files 302 302
Lines 21754 21753 -1
=======================================
+ Hits 12613 12614 +1
+ Misses 8218 8217 -1
+ Partials 923 922 -1 |
man/docker-run.1.md
Outdated
@@ -621,7 +621,7 @@ incompatible with any restart policy other than `none`. | |||
For the `overlay2` storage driver, the size option is only available if the backing fs is `xfs` and mounted with the `pquota` mount option. | |||
Under these conditions, user can pass any size less than the backing fs size. | |||
|
|||
**--stop-signal**=*SIGTERM* | |||
**--stop-signal**="" | |||
Signal to stop a container. Default is SIGTERM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this maybe note the fact that the default can be defined by the image or something? (STOPSIGNAL
in Dockerfile
)
Signal to stop a container. Default is SIGTERM. | |
Signal to stop a container. Default is defined by `STOPSIGNAL` in the image or `SIGTERM` if not defined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, makes sense to add, let me add some of that; thanks!
8197e8e
to
6671f40
Compare
I did some further rewriting of the docs, and moved a large part to #3261 (included in this PR; first two commits are from there) |
6671f40
to
6d420ca
Compare
The DefaultStopSignal const has been deprecated, because the daemon already handles a default value. The current code did not actually send the default value unless the flag was set, which also made the flag description incorrect, because in that case, the _daemon's_ default would be used, which could potentially be different as was specified here. This patch removes the default value from the flag, leaving it to the daemon to set a default. Signed-off-by: Sebastiaan van Stijn <[email protected]>
6d420ca
to
214cd05
Compare
@tianon @silvin-lubecki PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
@silvin-lubecki PTAL 🤗 |
@silvin-lubecki @tonistiigi PTAL 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
create/run: remove default --stop-signal Signed-off-by: jlecordier <[email protected]>
relates to moby/moby#42717
The DefaultStopSignal const has been deprecated, because the daemon already
handles a default value. The current code did not actually send the default
value unless the flag was set, which also made the flag description incorrect,
because in that case, the daemon's default would be used, which could
potentially be different as was specified here.
This patch removes the default value from the flag, leaving it to the daemon
to set a default.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)