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
Linter does not catch error in invalid RUN command
RUN
Dockerfile:
FROM ruby:2.1.5 RUN apt-get update && apt-get install -y libxslt-dev libxml2-dev screen rsync
Here is output of docker build command:
docker build
Error response from daemon: Dockerfile parse error line 4: unknown instruction: APT-GET
Here is output of dockerlint:
dockerlint
INFO: Dockerfile is OK.
Same goes for cases:
RUN apt-get update && apt-get install -y libxslt-dev libxml2-dev screen rsync
RUN apt-get update \\ && apt-get install -y libxslt-dev libxml2-dev screen rsync
RUN apt-get update \ && apt-get install -y libxslt-dev libxml2-dev screen rsync
dockerlint: 0.3.1 node: v7.10.1 npm: 4.2.0 docker: 17.09.0-ce, build afdb6d4 OS: macOS Sierra 10.12.6
0.3.1
v7.10.1
4.2.0
17.09.0-ce, build afdb6d4
macOS Sierra 10.12.6
The text was updated successfully, but these errors were encountered:
Please test with commit 016185a
The issue is not with the RUN command but with the next line which is an unknown instruction.
Sorry, something went wrong.
No branches or pull requests
Issue details
Linter does not catch error in invalid
RUN
commandSteps to reproduce/test case
Dockerfile:
Here is output of
docker build
command:Here is output of
dockerlint
:Same goes for cases:
Environment
dockerlint:
0.3.1
node:
v7.10.1
npm:
4.2.0
docker:
17.09.0-ce, build afdb6d4
OS:
macOS Sierra 10.12.6
The text was updated successfully, but these errors were encountered: