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

Publish diagnostic if a COPY's --from flag is invalid #149

Closed
rcjsuen opened this issue Aug 19, 2017 · 0 comments
Closed

Publish diagnostic if a COPY's --from flag is invalid #149

rcjsuen opened this issue Aug 19, 2017 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Aug 19, 2017

FROM scratch
COPY --from= . .
$ docker build .
Sending build context to Docker daemon  86.15MB
Step 1/2 : FROM scratch
 --->
Step 2/2 : COPY --from= . .
invalid from flag value : invalid reference format

In the Dockerfile above, we specify the --from= flag to the CMD instruction but don't actually specify any values. The Docker engine will warn about this case so we should publish a diagnostic that achieves the same thing.

@rcjsuen rcjsuen self-assigned this Jan 18, 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