dockerfile_lint
dockerfile_lint copied to clipboard
count: n instruction not enforced
In sample_rules.yaml it appears the count: 1
instruction is not used. For example, changing count to 2 doesn't impact the test.
-
instruction: "USER"
count: 2
level: "warn"
message: "No 'USER' instruction"
description: "The process(es) within the container may run as root and RUN instructions my be run as root"
reference_url:
- "https://docs.docker.com/reference/builder/"
- "#user"
Ack. Will fix in next iteration.
count still has no effect. Even I delete count field in required_instructions,the rule file still works. I test in version 0.3.3.