Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@yongtang
Copy link
Contributor

@yongtang yongtang commented Jun 3, 2016

This fix tries to add a StopTimeout in container's Config so that a per-container stop timeout could be specified during daemon shutdown.

The StopTimeout is defined as *int so that unspecified value could be correctly identified as using the default value (10s).
Note: Both 0 and -1 could not be used as the default value because 0 means stop immediately and -1 means wait forever.

This fix is related to docker:
moby/moby#22566

Signed-off-by: Yong Tang yong.tang.github@outlook.com

…on shutdown

This fix tries to add a `StopTimeout` in container's Config so that a per-container
stop timeout could be specified during daemon shutdown.

The `StopTimeout` is defined as `*int` so that unspecified value could be
correctly identified as using the default value (10s).
Note: Both `0` and `-1` could not be used as the default value because
`0` means stop immediately and `-1` means wait forever.

This fix is related to docker:
moby/moby#22566

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@vdemeester
Copy link
Contributor

LGTM 🐮

@coolljt0725
Copy link
Contributor

LGTM

@coolljt0725 coolljt0725 merged commit 5d87393 into docker-archive-public:master Jun 3, 2016
@yongtang yongtang deleted the 22471-daemon-shutdown-timeout branch June 3, 2016 09:19
yongtang added a commit to yongtang/docker that referenced this pull request Jun 3, 2016
This fix tries to update engine-api to 5d8739372315f8147ceb7bcc53576893ff96ffc6

This fix brings engine-api up to date, which includes changes from:
docker-archive-public/docker.engine-api#256
docker-archive-public/docker.engine-api#254

This fix is related to

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@stevvooe
Copy link
Contributor

stevvooe commented Sep 8, 2016

"Make the zero-value useful"

Could we please stop adding needless pointer values everywhere? This is getting tiresome. 1ns is just as good as zero and doesn't cause all kinds of havoc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants