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

Escape character that follows a label can cause parsing issues #95

Closed
rcjsuen opened this issue Apr 11, 2021 · 0 comments
Closed

Escape character that follows a label can cause parsing issues #95

rcjsuen opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Apr 11, 2021

The first Dockerfile is fine but the second one is not. Looks like the \ following the label immediately is the cause of this bug.

FROM scratch
LABEL "a"="b" \
    "c"="d"
FROM scratch
LABEL "a"="b"\
    "c"="d"
$ dockerfile-utils lint Dockerfile 
Line: 3
    "c"="d"
       ^^^^
Error: LABEL names can not be blank
$ docker build .
Sending build context to Docker daemon     47MB
Step 1/2 : FROM scratch
 ---> 
Step 2/2 : LABEL "a"="b"    "c"="d"
 ---> Running in c1d90c5f7985
Removing intermediate container c1d90c5f7985
 ---> bdff47f2a0a5
Successfully built bdff47f2a0a5
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