Skip to content
Back to skills

Podman Knowledge Patch

ASecurity

Podman

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-airustgosqldockerkubernetesgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill podman-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Podman Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Podman Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-podman-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-podman-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: podman-knowledge-patch
description: Podman
version: "6.0.0"
license: MIT
metadata:
  author: Nevaberry
---


# Podman compatibility guidance

Load this skill when upgrading Podman, adapting scripts or API clients,
configuring machines, authoring Quadlets, or replaying Kubernetes workloads.
Use the topic references for complete commands, conditions, and version attribution.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration and configuration](references/migration-and-configuration.md) | Removed support, build requirements, BoltDB migration, configuration discovery, registry policy, security fixes |
| [Machines and platforms](references/machines-and-platforms.md) | Providers, host mounts, provisioning, CA trust, macOS, Windows, WSL, guest OS updates |
| [Quadlet](references/quadlet.md) | Installation, companion files, drop-ins, dependencies, container and pod keys, builds, volumes |
| [Containers and runtime](references/containers-and-runtime.md) | Lifecycle, health checks, exec, checkpoints, namespaces, devices, secrets |
| [Images, builds, and artifacts](references/images-builds-and-artifacts.md) | Build contexts, cache, pulls, pushes, signing, transfers, artifact lifecycle and mounts |
| [Kubernetes, network, and storage](references/kubernetes-network-and-storage.md) | YAML replay, networking, DNS, published ports, volumes, storage integrity |
| [APIs, bindings, and observability](references/apis-bindings-and-observability.md) | Go imports, REST routes, request and response changes, inspection, filters, events, diagnostics |

## Breaking changes and upgrade actions

- Podman 6 drops Intel Macs, Windows 10, cgroups v1, iptables, CNI, and
  slirp4netns. Use cgroups v2, nftables, Netavark, and Pasta on supported hosts.
  Remove the slirp4netns-specific global `--network-cmd-path` option.
  The Podman 6.0.2 remote client can connect to a Podman service from a Linux
  client host using cgroups v1.
- Podman 6 requires SQLite and attempts to migrate an in-use BoltDB database
  at startup. Automatic migration after reboot is available in Podman 5.8.
  If automatic migration is unavailable, run `podman system migrate --migrate-db`
  before upgrading to 6.0.
- If Podman refuses to run because the database needs migration, prefer
  rebooting to reduce races. For manual migration, stop all other Podman
  commands and manually stop the systemd-activated API service
  (`podman system service`) and any Quadlets. Migration retains legacy BoltDB
  even if it fails.
- For a partial 5.8.0 reboot migration, only if there are no persistent
  containers, pods, or volumes, rename `db.sql` in Podman's storage directory
  to `db.sql.bak` and reboot with 5.8.1 to retry migration.
- Recreate existing Linux VMs after upgrading to Podman 6 to restore host
  mounts: Linux machines now mount host volumes through systemd.
- Podman 6 lists machines across installed providers by default. Remove
  `--all-providers` from scripts. The configured provider applies to new VMs;
  `podman machine init --provider=applehv NAME` overrides it. The macOS default
  is now `libkrun`.
- Change Go imports from `github.com/containers/podman/v5` to
  `go.podman.io/podman/v6`. Remove `nameOrID` from `artifacts.Remove()` calls.
- Podman 5.8.8 and 6.1.3 remove starting checkpoint images with `podman run`;
  the old behavior could bypass requested sandboxing (CVE-2026-94603).

## Deprecations and security-sensitive changes

- Remove `--cpu-rt-period` and `--cpu-rt-runtime` from scripts using `create`,
  `run`, `update`, or `container clone`. These flags have had no effect since
  cgroups v1 support was removed, are hidden, and are scheduled for removal
  in Podman 7.
- Use `securityContext.seccompProfile` in Kubernetes YAML. Annotation-based
  seccomp configuration is deprecated and scheduled for removal in Podman 7.0.
- `podman create` and `podman run` default to `--image-volume=anonymous` for
  image-declared volumes; explicit `--image-volume=bind` emits a deprecation warning.
- `podman machine init --volume-driver` is deprecated. Quadlet comment lines
  start with `#` or `;`; replace a leading `:` used as a comment marker.
- Remote image, artifact, and manifest pushes fail with `--sign-by` or
  `--sign-by-sigstore-private-key`, preventing an unsigned push when signing
  was requested.
- Upgrade to 5.8.10 or 6.2.0 on the corresponding release line for fixes to
  automatic systemd restarts, image digest and signature verification, and
  enforcement of the default seccomp socket rule.

## Changed defaults and script output

- `podman volume prune` removes only unused anonymous volumes by default.
  Use `--all` for unused named volumes and `--dry-run` to list candidates.
  `podman volume list` requires all supplied filters to match; multiple
  `label!=` filters combine with logical AND wherever supported.
- `podman commit` pauses by default; use `--pause=false` if it must keep running.
  `podman container checkpoint --leave-running` resumes only after root
  filesystem and named volume diffs finish.
- `podman container restore --publish` requires `--import` or a checkpoint
  image; it is rejected for a local checkpoint without either input.
- In `podman ps`, `podman pod ps`, and `podman volume ls`,
  `--format '{{json .Labels}}'` represents labels as comma-separated `key=value`
  pairs. Unset `MemorySwappiness` in container inspect output is nullable.
- `podman export` emits `Export`; consumers watching for its `Mount` event
  can switch to `Export`. For events stored by `journald`, use the journal
  entry timestamp because the logged event payload now omits it.

## Configuration design and precedence

The Podman 6.0 configuration design selects the first existing main file for
each of `containers.conf`, `storage.conf`, and `registries.conf` on Linux and
macOS: user, system, then vendor. This also applies to root. Even an empty
user main file suppresses system and vendor main files; drop-ins still load.

The design searches drop-in directories in vendor, system, then user order,
with rootful or rootless variants at vendor and system locations. Later
directories win for identical filenames, then surviving files load in one
lexicographic order. A vendor `99-defaults.conf` can override a user `33-local.conf`.

The design uses `CONTAINERS_CONF`, `CONTAINERS_STORAGE_CONF`, and
`CONTAINERS_REGISTRIES_CONF` to replace normal discovery with a single file.
The corresponding `_OVERRIDE` variable loads a final file after normal discovery.
Arrays replace earlier values by default; the design extends string-array
append syntax to storage and registry configuration.

The design drops `/etc/containers/containers.rootless.conf`; move settings to
a `.conf` drop-in under `/etc/containers/containers.rootless.conf.d/`.
It deprecates `rootless_storage_path` in favor of `graphroot` in a
`storage.rootless.conf.d/` drop-in and requires V2 main registry syntax.
It removes live configuration reload: restart `podman system service` to
apply changes while containers are running. See the reference for exact
paths, platform substitutions, library APIs, and policy lookup.

## Quadlet authoring and management

- Use `podman quadlet install ./app.container` to install for the current user;
  `list`, `print`, and `rm` list units, show source, and remove units.
  Use `--replace` to replace an installed unit and `--application` when
  companion files are not Quadlet units.
- Installation groups units and companion files in subdirectories, replacing
  `.app` tracking files. Replacing a longer unit with a shorter one clears
  trailing content; the fix also exists on the 5.8 series in 5.8.6.
- Use `ServiceName=web` to generate `web.service` regardless of the Quadlet
  filename. In `[Unit]`, references such as `Wants=my.container` translate to
  generated services. `UpheldBy=` in `[Install]` establishes the inverse of
  systemd's `Upholds=` relationship when enabled.
- Rootless services wait for `podman-user-wait-network-online.service`.
  `DefaultDependencies=false` disables the implicit network-online dependency.
  `SetMountsDependency=` controls `RequiresMountsFor=`, `WantsMountsFor=`, or neither.
- A `.build` unit builds an image for a `.container`; build services leave
  active state on completion unless `[Service]` has `RemainAfterExit=yes`.
  A `.artifact` unit manages an OCI artifact through systemd.
- In `[Container]`, `Memory=512m` caps memory, `ReloadSignal=SIGHUP` sends a
  reload signal, and `ReloadCmd=/usr/local/bin/reload` runs a reload command.
  `Umask=0027` sets the container umask; `Entrypoint=""` clears the image entrypoint.
- Given `app@.container`, a drop-in under `app@blue.container.d/` generates
  the `blue` instance without an instance file or symlink.

## Container health, exec, and updates

Use `podman update --health-cmd='test -f /tmp/ready' app` to add or replace a
health check and `podman update --no-healthcheck app` to disable it.
`--health-log-destination`, `--health-max-log-count`, and `--health-max-log-size`
on `run` and `create` control health check logging.

Podman honors image `StartInterval`; `--health-start-interval` aliases
`--health-startup-interval` on `create`, `run`, and `update`. With a startup
interval and no separate startup command, the regular health check runs during startup.
Paused containers do not run health checks. A timed-out check receives
`SIGTERM`, then `SIGKILL` after a delay if still running.

Use `podman update --env APP_MODE=production --unsetenv OLD_MODE app` to change
configured environment variables and `podman update --ulimit nofile=1024:4096 app`
to change configured open-file limits. Attached `podman exec` sessions forward
signals to the processes they start; Ctrl+C can terminate those processes.

## Kubernetes replay

Use `podman kube play db.yaml app.yaml` or `podman kube down app.yaml db.yaml`
for multiple files. `--no-pod-prefix` preserves manifest container names;
choose distinct pod and container names to avoid creation failures.

`--validate` controls handling of unrecognized manifest fields. Use
`podman kube play --multiple-pods deployment.yaml` for Deployment replicas and
`podman kube play --label app=demo deployment.yaml` to label created containers,
pods, volumes, and secrets. Replay rejects conflicting `hostPort` bindings.

`podman kube generate` can export health checks as `livenessProbe` and preserves
user namespace settings and volume subpaths. Memory-backed `emptyDir` volumes
are shared by the pod's containers and honor `sizeLimit`.

## Networking and storage

Network isolation is enabled by default, including in the Docker-compatible API.
With `--net=host`, `host.containers.internal` resolves to `127.0.0.1`.
Use `default_host_ips` in `containers.conf` for published ports without a host IP.
Multiple attachments are configured in command-line order; repeat `ip=` for
multiple static addresses on one network.

Experimental: `rootless_port_forwarder = "pasta"` in `containers.conf` preserves
client source IPs on rootless bridge published ports through Pesto.
The default is `rootlessport`; Podman 6.0.1 fixes forwarding failures after
container restarts and network reloads with this setting.

Use `subpath=` with `--mount type=volume` to expose a directory within a volume.
Add `nocreate` to fail when the source volume is absent. Rename an unused local
volume with `podman volume rename old-data new-data`; container references and
external volume drivers prevent renaming. `podman system check` detects storage
corruption and supports repair when possible; `--quick` skips layer digest verification.

## Images, builds, and API clients

Use `podman push --platform linux/arm64 localhost/app:1 docker://registry.example.com/app:1`
to publish one manifest from a multi-platform image. The Docker-compatible Image
Push endpoint accepts the same selection through `platform`.

An explicitly empty `podman build --ignorefile` disables ignore rules even when
the context contains `.containerignore` or `.dockerignore`. With a Containerfile
from process substitution and no context, the build uses an empty temporary
context; pass a context if `COPY` needs local files. Remote environment-backed
build secrets read the value from the client environment.

For Docker-compatible Image Inspect, read `Config`; `ContainerConfig` was removed.
Send `"Healthcheck": {}` in Compat Container Create to inherit the image health
check. Both Container Update APIs preserve omitted rlimits and restart policy.
Use Libpod Secret Inspect for `showsecret`; Compat Secret Inspect no longer accepts it.
Attaching with `stream=0&logs=1` retrieves logs without reinitializing the container
or changing its status or exit code. The API reference retains exact routes,
field spellings, empty-body behavior, streaming details, and binding changes.

Files in this skill

  • SKILL.md5.9 KB
  • references/artifacts.md1 KB
  • references/cli-enhancements.md1.3 KB
  • references/infrastructure.md948 B
  • references/quadlet.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.