Skip to content
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

Validator should detect invalid duration that includes a hyphen #18

Closed
rcjsuen opened this issue Feb 5, 2018 · 0 comments
Closed

Validator should detect invalid duration that includes a hyphen #18

rcjsuen opened this issue Feb 5, 2018 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Feb 5, 2018

FROM alpine
HEALTHCHECK --interval=5s-10ms CMD ls
$ docker build .
Sending build context to Docker daemon  1.693MB
Step 1/2 : FROM alpine
latest: Pulling from library/alpine
ff3a5c916c92: Pull complete
Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0
Status: Downloaded newer image for alpine:latest
 ---> 3fd9065eaf02
Step 2/2 : HEALTHCHECK --interval=5s-10ms CMD ls
time: unknown unit s- in duration 5s-10ms

A duration of 5s-10ms should be flagged as an error by the validator.

> dockerfile-utils lint Dockerfile
> 
@rcjsuen rcjsuen self-assigned this Feb 5, 2018
@rcjsuen rcjsuen closed this as completed in ff848fc Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant