Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

do not allow sub second in healthcheck options in Dockerfile#31177

Merged
thaJeztah merged 1 commit intomoby:mastermoby/moby:masterfrom
allencloud:donot-allow-subsecond-in-dockerfile-healthcheckallencloud/docker:donot-allow-subsecond-in-dockerfile-healthcheckCopy head branch name to clipboard
Mar 8, 2017
Merged

do not allow sub second in healthcheck options in Dockerfile#31177
thaJeztah merged 1 commit intomoby:mastermoby/moby:masterfrom
allencloud:donot-allow-subsecond-in-dockerfile-healthcheckallencloud/docker:donot-allow-subsecond-in-dockerfile-healthcheckCopy head branch name to clipboard

Conversation

@allencloud
Copy link
Copy Markdown
Contributor

Signed-off-by: allencloud allen.sun@daocloud.io

This is a follow-up for #30203

Since in docker/master, we do not allow docker daemon to validate healthcheck parameter Timeout and Interval to be not less than 1 second. We discussed about that we should not support sub second validation.

Without this PR, if a user specifies Timeout in Dockerfile to be 0.5s(sub second), then the docker build will be OK, and let us call the built image to be built-image. However, the docker run built-image will report error, since PR #30203.

- What I did

  1. validate healthcheck parameters Timeout and Interval in Dockerfile options.

ping @cpuguy83 @LK4D4

Signed-off-by: allencloud <allen.sun@daocloud.io>
@coolljt0725
Copy link
Copy Markdown
Contributor

LGTM ping @cpuguy83 @LK4D4

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit fb1890f into moby:master Mar 8, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.04.0 milestone Mar 8, 2017
@allencloud allencloud deleted the donot-allow-subsecond-in-dockerfile-healthcheck branch March 8, 2017 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.