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

Decimals in duration incorrectly flagged as an error #19

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

Decimals in duration incorrectly flagged as an error #19

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

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Feb 5, 2018

FROM scratch
HEALTHCHECK --timeout=5s.1ms CMD ls
$ docker build .
Sending build context to Docker daemon  1.693MB
Step 1/2 : FROM scratch
 --->
Step 2/2 : HEALTHCHECK --timeout=5s.1ms CMD ls
 ---> Running in 3af4f3acc567
 ---> 22f68f4e91b1
Removing intermediate container 3af4f3acc567
Successfully built 22f68f4e91b1

It seems like the parsing of a flag's duration isn't quite right.

$ dockerfile-utils lint Dockerfile
Line: 2
HEALTHCHECK --timeout=5s.1ms CMD ls
                      ^^^^^^
Error: time: unknown unit . in duration 5s.1ms
@rcjsuen rcjsuen added the bug label Feb 5, 2018
@rcjsuen rcjsuen self-assigned this Feb 6, 2018
@rcjsuen rcjsuen closed this as completed in d89324d Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant