{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "anchore-syft--scan-podman-and-buildah-images-with-syft",
 "repo": "anchore/syft",
 "repo_url": "https://github.com/anchore/syft",
 "repo_slug": "anchore-syft",
 "title": "Scan images built with Podman or Buildah",
 "page_title": "How to scan images built with Podman or Buildah with Syft",
 "summary": "Inventory a locally built image straight from containers-storage without pushing it anywhere.",
 "who": "A developer building images with Podman or Buildah on Linux who wants an SBOM before pushing.",
 "problem": "Plain image references never look in the local containers-storage store.",
 "outcome": "A package list for a local image that was never published.",
 "steps": [
  "Install Syft on Linux from the release binaries, which include this feature",
  "Run `syft --from containers-storage localhost/myimage:latest` for 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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Linux only per the README; building Syft from source needs extra build tags.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "go",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anchore-syft/scan-podman-and-buildah-images-with-syft/",
 "md": "https://dedupedai.com/use-cases/anchore-syft/scan-podman-and-buildah-images-with-syft/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anchore-syft--scan-podman-and-buildah-images-with-syft.json",
 "api_version": "v1"
}
