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

Does not catch error in invalid RUN command #40

Open
prog1dev opened this issue Nov 11, 2017 · 1 comment
Open

Does not catch error in invalid RUN command #40

prog1dev opened this issue Nov 11, 2017 · 1 comment

Comments

@prog1dev
Copy link

prog1dev commented Nov 11, 2017

Issue details

Linter does not catch error in invalid RUN command

Steps to reproduce/test case

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:

Error response from daemon: Dockerfile parse error line 4: unknown instruction: APT-GET

Here is output of 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

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

@rnagy
Copy link
Contributor

rnagy commented Jan 3, 2018

Please test with commit 016185a

The issue is not with the RUN command but with the next line which
is an unknown instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants