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

Warn about ARG instructions that do not specify a variable name #45

Closed
rcjsuen opened this issue May 28, 2018 · 0 comments
Closed

Warn about ARG instructions that do not specify a variable name #45

rcjsuen opened this issue May 28, 2018 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented May 28, 2018

ARG instructions must have a name specified.

FROM scratch
ARG =value
$ docker build .
Sending build context to Docker daemon  1.774MB
Error response from daemon: Dockerfile parse error line 2: ARG names can not be blank

We should add support for this in the validator.

$ docker run -v `pwd`/Dockerfile:/Dockerfile rcjsuen/dockerfile-utils lint /Dockerfile
$
@rcjsuen rcjsuen self-assigned this May 28, 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