Skip to main content
RunBook Academy

← All checklists in Docker & Containers

Before deploymentImages

Checklist: Container image production readiness

10 items ·3 critical ·4 warn ·3 info

Procedure

For each item:

  1. Run the command.
  2. Confirm the output matches the expected.
  3. If not, fix or document an exception.

Critical3 items

  1. docker image inspect IMAGE --format "{{.Config.User}}"
  2. trivy image --severity CRITICAL --secret IMAGE
  3. trivy image --severity HIGH,CRITICAL --exit-code 1 IMAGE

Warning4 items

  1. docker image inspect IMAGE --format "{{.Config.Image}}"
  2. docker image inspect IMAGE --format "{{json .Config.Healthcheck}}"
  3. docker run --rm IMAGE cat /etc/ld.so.cache > /dev/null
  4. cosign verify IMAGE 2>&1 | head -5

Info3 items

  1. docker image inspect IMAGE --format "{{.Config.User}}"
  2. docker image history --no-trunc IMAGE | head -10
  3. docker manifest inspect IMAGE