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
The linter should run on Dockerfiles that use a custom registry with a port number.
The linter errors out before running any linting checks.
Create the following Dockerfile:
FROM myregistry.com:5000/imagename:tag
Run docker run --rm -i hadolint/hadolint < Dockerfile.
docker run --rm -i hadolint/hadolint < Dockerfile
You will see an error like:
/dev/stdin:1:35 unexpected ':' expecting spaces, "AS" or a new line followed by the next instruction
If you remove the :5000, the error goes away.
:5000
Output of hadolint --version or docker run --rm hadolint/hadolint hadolint --version:
hadolint --version
docker run --rm hadolint/hadolint hadolint --version
# docker run --rm hadolint/hadolint hadolint --version Haskell Dockerfile Linter v1.5.0-9-g508b1cf
Dockerfile (if relevant)
Additional environment details (OS, stack version, etc.)
$ docker version Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 22:06:25 2017 OS/Arch: linux/amd64 Server: Version: 17.05.0-ce API version: 1.29 (minimum version 1.12) Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 22:06:25 2017 OS/Arch: linux/amd64 Experimental: false
The text was updated successfully, but these errors were encountered:
This is an issue of having 2 colons.
Sorry, something went wrong.
Good catch @Rickkwa!
What else we can expect in pattern registry/imagename:label
imagename
debian
lgx-project/ruby-ex
in image tag area we can expect that there won't be a colon docker_registry/tags.py#L25 and I have also found a word description of naming at https://docs.docker.com/engine/reference/commandline/tag/#extended-description
Fixed FROM when specifying a registry
c651e0c
closes #169
ee25683
Successfully merging a pull request may close this issue.
Expected behavior
The linter should run on Dockerfiles that use a custom registry with a port number.
Actual behavior
The linter errors out before running any linting checks.
Steps to reproduce the behavior
Create the following Dockerfile:
Run
docker run --rm -i hadolint/hadolint < Dockerfile
.You will see an error like:
If you remove the
:5000
, the error goes away.Output of
hadolint --version
ordocker run --rm hadolint/hadolint hadolint --version
:# docker run --rm hadolint/hadolint hadolint --version Haskell Dockerfile Linter v1.5.0-9-g508b1cf
Dockerfile (if relevant)
FROM myregistry.com:5000/imagename:tag
Additional environment details (OS, stack version, etc.)
The text was updated successfully, but these errors were encountered: