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

Create a diagnostic to validate LABEL's syntax #100

Closed
rcjsuen opened this issue Jul 25, 2017 · 1 comment
Closed

Create a diagnostic to validate LABEL's syntax #100

rcjsuen opened this issue Jul 25, 2017 · 1 comment
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jul 25, 2017

From what I can tell, LABEL instructions are similar to ENV instructions so we should be able to reuse the parsing code here.

@rcjsuen
Copy link
Owner Author

rcjsuen commented Jul 31, 2017

FROM alpine
LABEL a
Error response from daemon: LABEL must have two arguments
FROM alpine
LABEL a=b c
Error response from daemon: Syntax error - can't find = in "c". Must be of the form: name=value
FROM alpine
LABEL a=b c d=e
Error response from daemon: Syntax error - can't find = in "c". Must be of the form: name=value

@rcjsuen rcjsuen self-assigned this Jul 31, 2017
@rcjsuen rcjsuen assigned rcjsuen and unassigned rcjsuen Aug 1, 2017
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