We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want Dockerlint to properly lint my multi-stage Dockerfiles. However, it doesn't seem to support using a CMD directive in more than one stage.
CMD
Put this into Dockerfile:
Dockerfile
FROM busybox AS base WORKDIR /tmp CMD ["/bin/sh"] ######################################## FROM base AS whoami CMD ["whoami"]
Then run dockerlint Dockerfile.
dockerlint Dockerfile
Expected behavior: Dockerlint succeeds on this file.
Actual behavior:
ERROR: Multiple CMD instructions found, only line 10 will take effect ERROR: Dockerfile failed.
0.3.9
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue details
I want Dockerlint to properly lint my multi-stage Dockerfiles. However, it doesn't seem to support using a
CMD
directive in more than one stage.Steps to reproduce/test case
Put this into
Dockerfile
:Then run
dockerlint Dockerfile
.Expected behavior: Dockerlint succeeds on this file.
Actual behavior:
Affected version(s)
0.3.9
The text was updated successfully, but these errors were encountered: