You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,15 @@ Note the (optional) `inverse_rule` attribute - this is just a convinient way to
121
121
## Required Instruction Section
122
122
This section includes a list of instructions that must exist in the dockerfile in order for it to be considered valid.
123
123
124
+
## Inline Ignore Instructions
125
+
The user can tell dockerfile_lint to ignore a specific comand line inside a Dockerfile by placing a comment containing the word "dockerfile_lint" followed by the word "ignore", separated by a space, or a space and a dash/equals sign, above the command in the Dockerfile to be ignored.
126
+
```
127
+
# Add is required <forsomepreviouslyapprovedreasondocumentedhere>
The above inline ignore would cause dockerfile_lint to skip processing the ADD command that follows it. This allows the writing of strict rules in order to catch when best practices are not followed, while still being able to explicitly override the check on a case by case basis if a valid reason exists.
0 commit comments