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

Decimal values in durations are not parsed correctly #23

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

Decimal values in durations are not parsed correctly #23

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

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Feb 18, 2018

FROM alpine
HEALTHCHECK --interval=.1ms CMD l
$ dockerfile-utils lint Dockerfile
$
$ docker build .
Sending build context to Docker daemon  1.695MB
Error response from daemon: Dockerfile parse error line 2: Interval "interval" cannot be less than 1ms

We aren't handling a value of .1ms properly it seems. A value of 0.1ms is correctly flagged as an error though.

$ dockerfile-utils lint Dockerfile.1
Line: 2
HEALTHCHECK --interval=0.1ms CMD l
              ^^^^^^^^
Error: Interval "interval" cannot be less than 1ms
@rcjsuen rcjsuen added the bug label Feb 18, 2018
@rcjsuen rcjsuen self-assigned this Feb 18, 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