dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

count: n instruction not enforced

Open aweiteka opened this issue 9 years ago • 2 comments

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"

aweiteka avatar Jan 20 '16 21:01 aweiteka

Ack. Will fix in next iteration.

lphiri avatar Jan 21 '16 15:01 lphiri

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.

Marshalzxy avatar Jan 04 '20 03:01 Marshalzxy