-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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
Disable Docker's health check until we officially support it #50796
Conversation
@@ -131,6 +131,10 @@ func (ds *dockerService) CreateContainer(podSandboxID string, config *runtimeapi | |||
OpenStdin: config.Stdin, | |||
StdinOnce: config.StdinOnce, | |||
Tty: config.Tty, | |||
// Disable Docker's health check until we officially support it. | |||
Healthcheck: &dockercontainer.HealthConfig{ |
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.
Is this compatible with docker 1.10 and 1.11?
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.
This is the compatibility between new docker client API and old docker daemon, which should not be an issue?
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.
But on the other hand, to cherry-pick this into 1.7 and 1.6, we need #48308..
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.
:-(
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.
Unfortunately, the docker-related code changed a lot in the past 3 releases. Updating the docker client for each release will be a completely different PR....
I think it might be too intrusive. Let's think it through first...
@@ -131,6 +131,10 @@ func (ds *dockerService) CreateContainer(podSandboxID string, config *runtimeapi | |||
OpenStdin: config.Stdin, | |||
StdinOnce: config.StdinOnce, | |||
Tty: config.Tty, | |||
// Disable Docker's health check until we officially support it. |
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.
Add the issue number in the comment #25829
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.
Done. Added a link.
/retest |
LGTM, but leaving @dchen1107 a chance to object /retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, yguo0905, yujuhong Associated issue: 50703 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 50563, 50698, 50796) |
// (https://github.com/kubernetes/kubernetes/issues/25829). | ||
Healthcheck: &dockercontainer.HealthConfig{ | ||
Test: []string{"NONE"}, | ||
}, |
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.
fwiw, this causes lots of warnings in docker log like:
Dec 11 08:50:29 HOSTNAME dockerd[14450]: time="2017-12-11T08:50:29.993217562+01:00" level=warning msg="Unknown healthcheck type 'NONE' (expected 'CMD') in container XXXXX"
is this really the cleanest way to tell docker to not use the healthcheck?
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.
@asacbp - that's what they are recommending, https://github.com/docker/engine-api/blob/master/types/container/config.go#L16 So maybe worth asking on the docker github issues?
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.
This has just been fixed in docker, but hasn't been included in any release yet.
moby/moby#35533
Ref: #50703
Tested locally.
Without this PR:
With this PR:
Release note:
/assign @yujuhong
/assign @dchen1107