https://github.com/ritreshgirdhar/lint-dockerfile
Docker Linting - Demo
https://github.com/ritreshgirdhar/lint-dockerfile
demo docker docker-linting dockerfile maven
Last synced: 9 months ago
JSON representation
Docker Linting - Demo
- Host: GitHub
- URL: https://github.com/ritreshgirdhar/lint-dockerfile
- Owner: RitreshGirdhar
- Created: 2020-06-24T18:42:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T18:49:46.000Z (over 5 years ago)
- Last Synced: 2025-05-04T08:53:55.047Z (9 months ago)
- Topics: demo, docker, docker-linting, dockerfile, maven
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Linting Demo
Linting Docker demo
### Install
Here i am using OSX, installing hadolint using brew.
```
$ brew install hadolint
```
#### hadolint Dockerfile
```
$ hadolint Dockerfile
Dockerfile:4 DL3020 Use COPY instead of ADD for files and folders
```
```
$ hadolint --ignore DL3003 --ignore DL3006 Dockerfile
Dockerfile:4 DL3020 Use COPY instead of ADD for files and folders
```
```
$ hadolint --trusted-registry xyz.com:500 Dockerfile
Dockerfile:1 DL3026 Use only an allowed registry in the FROM image
Dockerfile:4 DL3020 Use COPY instead of ADD for files and folders
```