Podman

EXPERIMENTAL

This feature might change without preserving backwards compatibility.

Scan your image in Podman (>=2.0) running locally. The remote Podman is not supported. Before performing Trivy commands, you must enable the podman.sock systemd service on your machine. For more details, see here.

  1. $ systemctl --user enable --now podman.socket

Then, you can scan your image in Podman.

  1. $ cat Dockerfile
  2. FROM alpine:3.12
  3. RUN apk add --no-cache bash
  4. $ podman build -t test .
  5. $ podman images
  6. REPOSITORY TAG IMAGE ID CREATED SIZE
  7. localhost/test latest efc372d4e0de About a minute ago 7.94 MB
  8. $ trivy image test