X Tutup
Skip to content

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

Merged
thaJeztah merged 1 commit intomoby:masterfrom
allencloud:donot-allow-subsecond-in-dockerfile-healthcheck
Mar 8, 2017
Merged

do not allow sub second in healthcheck options in Dockerfile#31177
thaJeztah merged 1 commit intomoby:masterfrom
allencloud:donot-allow-subsecond-in-dockerfile-healthcheck

Conversation

@allencloud
Copy link
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
Contributor

LGTM ping @cpuguy83 @LK4D4

Copy link
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

X Tutup