Who it is forA developer building images with Podman or Buildah on Linux who wants an SBOM before pushing.
The problemPlain image references never look in the local containers-storage store.
The outcomeA package list for a local image that was never published.
What you need first
- A Linux or macOS shell with curl and sudo, or another install method from the Syft docs
- A container image reference or a project directory to scan
- Grype is optional, only for the vulnerability scanning step
Steps
- Install Syft on Linux from the release binaries, which include this feature
- Run
syft --from containers-storage localhost/myimage:latestfor a normal store - For rootless stores run
podman unshare syft --from containers-storage localhost/myimage:latest - Add an output format flag to save an SBOM file
Prompt for your agent
With anchore/syft on Linux, run `syft --from containers-storage localhost/myimage:latest` for my local image <name> (use `podman unshare syft --from containers-storage localhost/myimage:latest` if rootless) and report the package count.
Caveat. Linux only per the README; building Syft from source needs extra build tags.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for anchore/syft and "Scan images built with Podman or Buildah"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer