Closed AmauryOrtega closed 3 years ago
@AmauryOrtega I've copied the Dockerfile locally and tried it here, and it reports
Issues: None found 👍
Could you share some details of the command line you are using to execute the linting?
@marccampbell Thanks for your help, the command line I used is in the output section on my previous comment.
Because it's been a while I didn't focus on this, I was able to come back with a clear mind and I just now realized that it was my mistake.
The replicated/dockerfilelint's dockerfile clearly states that the workdir is set to /dockerfilelint
I assumed the workdir was /
so I placed the Dockerfile in /Dockerfile
and tried calling it. That's why the tool was outputting File: <contents>
.
I changed my command to
$ docker run --rm -v "$PWD"/Dockerfile:/dockerfilelint/Dockerfile replicated/dockerfilelint:latest Dockerfile
File: Dockerfile
Issues: None found 👍
It also would've worked if I just followed the README.md as intended.
I'm using the latest docker image
replicated/dockerfilelint:latest
to test my Dockerfile and I'm getting this output (First try). I do not understand which comment is raising this issue. I thought it was the comments on line 3 and 4 so I removed then and tried again but no luck (Second try).Can someone explain to me what is happening here?
First try
Dockerfile
Output
First try
Dockerfile
Output