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

Misleading error log - Dockerfile parse error line 2: ARG names can not be blank #110

Open
dangspaceiq opened this issue Jun 17, 2022 · 1 comment

Comments

@dangspaceiq
Copy link

Error response from daemon: Dockerfile parse error line 2: ARG names can not be blank.

Dockerfile contains:

ARG ARG_AWS_ACCESS_KEY_ID = "NOTSET"

The error goes away if you remove the spaces around the equal sign.

It should wether:

  1. Handle spaces
  2. Log the error specifying what needs to be corrected
@rcjsuen
Copy link
Owner

rcjsuen commented Jun 17, 2022

@dangspaceiq It seems you are reporting an issue with docker build itself. Is that what you are suggesting? Or are you suggesting that the dockerfile-utils library should be flagging this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants