slim icon indicating copy to clipboard operation
slim copied to clipboard

Can DockerSlim support using DockerImage as a target for lint?

Open CZJCC opened this issue 2 years ago • 1 comments

Expected Behavior

Is it possible to support the result of 【docker history image】 as the input parameters for lint?


Actual Behavior

image


Steps to Reproduce the Problem


Specifications

  • Version:
  • Platform:

CZJCC avatar Feb 07 '23 02:02 CZJCC

You get a reverse engineered Dockerfile when you run the xray and build commands, which can be used as input to the lint command. The lint command will have this capability natively, but it hasn't been a priority recently. Definitely an opportunity to contribute :-) One of the goals for the lint command is to support this use case where you can point at an image and it would lint the instructions used to build it and other interesting things in the container itself.

kcq avatar Mar 17 '23 00:03 kcq