Skip to content
Back to skills

Podman Knowledge Patch

ASecurity

Podman

  • 25 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 5, 2026
ai-agentsrustgobashsqldockerkubernetesgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 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-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-podman-knowledge-patch-nevaberry-plugins)

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 knowledge patch

Load this skill when upgrading Podman, adapting scripts or API clients, writing
Quadlets, replaying Kubernetes workloads, or managing Podman machines, images,
artifacts, networks, and volumes. Use the topic references for complete guidance
and release-specific conditions.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration and configuration](references/migration-and-configuration.md) | SQLite migration, platform and build requirements, configuration discovery, registries, storage checks, security updates |
| [Machines and platforms](references/machines-and-platforms.md) | Providers, host mounts, provisioning, CA trust, macOS, Windows, WSL, guest OS updates |
| [Containers and runtime](references/containers-and-runtime.md) | Health checks, resources, exec, signals, pods, namespaces, devices, secrets, checkpoints, auto-updates |
| [Images, builds, and artifacts](references/images-builds-and-artifacts.md) | Build contexts, cache, artifact operations and mounts, pulls, pushes, signing, transfers |
| [Kubernetes, network, and storage](references/kubernetes-network-and-storage.md) | Workload replay, YAML settings, DNS, bridges, port forwarding, volume mounts and administration |
| [APIs, bindings, and observability](references/apis-bindings-and-observability.md) | Go bindings, REST changes, remote connections, response fields, filters, inspection, events |
| [Quadlet](references/quadlet.md) | Discovery, drop-ins, installation, dependencies, container and pod settings, image and build units |

## Breaking changes and migration

### Database migration

Podman 6 requires SQLite and attempts to migrate an in-use BoltDB database at
startup. Podman 5.8 attempts migration after a reboot; 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 with other Podman processes. For manual migration, stop all other
Podman commands and manually stop the systemd-activated API service
(`podman system service`) and any Quadlets. Migration retains the legacy BoltDB
database even if it fails.

Podman 5.8.1 fixes partial reboot migration of Quadlet-managed containers. Only if
that happened and 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.

### Platforms, providers, and mounts

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 from scripts. The 6.0.2
remote client can connect from a Linux client host using cgroups v1.

In Podman 6, `podman machine list` lists machines across installed providers;
remove `--all-providers` from scripts. macOS defaults to `libkrun`. Linux machines
mount host volumes through systemd; recreate existing Linux VMs to restore their
host mounts after upgrading. The `podman machine init` option `--volume-driver`
is deprecated.

### Configuration discovery and reload

The Podman 6.0 configuration design selects the first existing main file for
`containers.conf`, `storage.conf`, and `registries.conf`, checking user, system,
then vendor locations. This applies to root too: even an empty user main file
suppresses the system and vendor main files, while drop-ins still load.

Later drop-in directories win for identical filenames; surviving files load in
one lexicographic order. A vendor `99-defaults.conf` can override values from a
user `33-local.conf`. The design removes live configuration reload, so restart
`podman system service` to apply changes while containers are running.

The design replaces `/etc/containers/containers.rootless.conf` with `.conf`
drop-ins under `/etc/containers/containers.rootless.conf.d/`, requires V2 syntax
in the main `registries.conf`, and replaces `REGISTRIES_CONFIG_PATH` with
`CONTAINERS_REGISTRIES_CONF`. See the migration reference for complete paths,
environment overrides, rootless storage settings, and library API changes.

### Deprecated flags and changed defaults

- Remove `--cpu-rt-period` and `--cpu-rt-runtime` from scripts using `create`,
  `run`, `update`, or `container clone`. They have had no effect since cgroups v1
  support was removed, are hidden, and are scheduled for removal in Podman 7.
- Set `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 volume prune` removes only unused anonymous volumes by default. Add
  `--all` for unused named volumes or `--dry-run` to list what would be removed.
- `podman commit` pauses by default; use `--pause=false` if it must keep running.
- `podman container restore --publish` requires `--import` or a checkpoint image;
  it is rejected for a local checkpoint without either input.
- Start Quadlet comments with `#` or `;`; replace leading `:` comment markers.
- Remote image, artifact, and manifest pushes fail with `--sign-by` or
  `--sign-by-sigstore-private-key`, preventing an unsigned push when signing was requested.

### Security and client compatibility

Podman 5.8.8 and 6.1.3 remove checkpoint-image startup through `podman run` because
it could bypass caller-requested sandboxing (CVE-2026-94603). Upgrade to 5.8.10 or
6.2.0 on the corresponding release line for fixes to automatic systemd restarts
(CVE-2026-121885), image digest and signature verification (CVE-2026-111361), and
the default seccomp socket rule (CVE-2026-123876).

For Podman 6 Go code, change imports from `github.com/containers/podman/v5` to
`go.podman.io/podman/v6` and remove `nameOrID` from `artifacts.Remove()` calls.
Read image configuration from `Config` in Docker-compatible Image Inspect;
`ContainerConfig` was removed, matching Docker API v1.45.

## Quadlet quick reference

- Install with `podman quadlet install ./app.container`; use `--replace` to replace
  an installed unit and `--application` when including non-Quadlet companion files.
  Bundle syntax, templates, listing, and replacement fixes are in the Quadlet reference.
- Set `ServiceName=web` to generate `web.service` from a different filename.
  Rootless services wait for `podman-user-wait-network-online.service`;
  `DefaultDependencies=false` disables the implicit network-online dependency.
- Use a `.build` unit to build an image for a `.container` unit, and a `.artifact`
  unit to manage an OCI artifact through systemd. Completed `.build` services leave
  the active state by default; `[Service]` `RemainAfterExit=yes` keeps them active.
- In `[Container]`, `Memory=512m` caps memory; `ReloadSignal=SIGHUP` sends a signal
  on `systemctl reload`, while `ReloadCmd=/usr/local/bin/reload` runs a command.
  `Umask=0027` configures the container's umask.
- `Network=proxy.container` shares the referenced container's network namespace.
  `NetworkAlias=api` works in `[Container]` or `[Pod]`.
- Set `Retry=5` and `RetryDelay=10s` in `[Container]`, `[Image]`, or `[Build]`
  to configure retries for failed image pulls.
- All Quadlet file types accept `SetMountsDependency=` to choose
  `RequiresMountsFor=`, `WantsMountsFor=`, or neither for required source paths.
- A drop-in under `app@blue.container.d/` can generate the `blue` instance of
  `app@.container` without an instance file or symlink.

## Containers, health checks, and volumes

Update an existing container's health check or disable it:

```bash
podman update --health-cmd='test -f /tmp/ready' app
podman update --no-healthcheck app
```

Podman honors the image health check's `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. Health log destinations, limits, and
timeout signals are documented in the container reference.

Use `podman update --env APP_MODE=production --unsetenv OLD_MODE app` to update
environment configuration, or `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.

Use `subpath=` for a directory within a named volume, or `nocreate` to fail when
the source volume is absent:

```bash
podman run --mount type=volume,source=app-data,target=/data,subpath=reports IMAGE
podman run --mount type=volume,source=app-data,target=/data,nocreate IMAGE
```

`podman volume rename old-data new-data` renames an unused local volume; a
container reference or external volume driver prevents it. `podman system check`
detects storage corruption and supports repair when possible; `--quick` skips
layer digest verification.

## Kubernetes replay and networking

- `podman kube play db.yaml app.yaml` and `podman kube down app.yaml db.yaml`
  process several manifests. `--no-pod-prefix` preserves manifest container names;
  choose distinct pod and container names to avoid creation failures.
- `podman kube play --validate` controls handling of unrecognized manifest fields.
  `--label app=demo` labels created containers, pods, volumes, and secrets.
  `--multiple-pods` creates multiple pods for a Deployment requesting multiple replicas.
- `podman kube generate` can export a health check as `livenessProbe` and preserves
  user namespace settings and volume subpaths. PID-limit annotations and CPU/NUMA
  placement examples are in the Kubernetes reference.
- An `emptyDir` with `medium: Memory` is shared by the pod's containers and honors
  `sizeLimit`. In 6.2.1, executable ConfigMap and Secret files are executable at launch.
- Network isolation is enabled by default, including for the Docker-compatible API.
  With `--net=host`, `host.containers.internal` resolves to `127.0.0.1`.
- Repeat `ip=` for multiple static addresses on a network. Network attachments
  are configured in command-line order. `default_host_ips` in `containers.conf`
  controls published-port host addresses when the mapping omits a host IP.
- Experimental: `rootless_port_forwarder = "pasta"` in `containers.conf` preserves
  client source IPs on published ports of rootless bridge networks through Pesto.
  The default is `rootlessport`; 6.0.1 fixes failures after restarts and network reloads.

## Images, builds, and artifacts

- `podman pull --policy=newer IMAGE` pulls when the remote image is newer or there
  is no local copy. `podman manifest push` accepts `--retry` and `--retry-delay`.
- Select one manifest from a multi-platform image with
  `podman push --platform linux/arm64 localhost/app:1 docker://registry.example.com/app:1`.
- For a Containerfile from process substitution without a context, `podman build`
  uses an empty temporary context. Supply an explicit context if `COPY` needs local files.
  An explicitly empty `--ignorefile` disables ignore rules even when the context
  contains `.containerignore` or `.dockerignore`.
- With `podman --remote build --secret id=api-key,env=API_KEY .`, set `API_KEY`
  in the client environment; the remote build reads it there.
- `podman artifact add --append --file-type application/json localhost/config:v1 settings.json`
  appends a file with an explicit MIME type. Artifact mounts use `--mount type=artifact`.
  `podman artifact ls --quiet` emits digests; `--format=json` emits JSON.
- `podman image scp --compression-format FORMAT --compression-level LEVEL` with
  source and destination selects transfer compression; `--format` selects archive format.

## Machines and remote clients

New VMs mount the host user's container configuration directory at `/etc/containers`
inside the guest, so edit host files to configure the VM. `--import-native-ca` on
`podman machine init` or `podman machine set` imports host trusted CAs at each boot.
`podman machine init --playbook ./setup.yml` runs Ansible inside the new VM on first boot.

`podman machine os update` updates the guest OS on providers other than WSL.
The WSL provider in 6.2.0 uses native systemd for new machines and supports existing
machines with the older setup. Use WSL 2.5.1 or later; 2.7.5 or later is recommended
for nftables networking. Windows installation and Hyper-V permissions are in the
machine reference.

The remote client and `podman system service` support TLS over TCP, including
mutual TLS. `podman auto-update` works remotely, with `--filter` selecting containers.
`podman version` prints the remote client's version even if the server is unreachable.

## API and observability quick reference

Container Update in both APIs preserves rlimits and restart policy when omitted.
In Docker-compatible Container Create, `"Healthcheck": {}` inherits the image's
health check; extra tmpfs options use `HostConfig.Mounts[].TmpfsOptions.Options`.
Use Libpod Secret Inspect for `showsecret`; Compat Secret Inspect no longer accepts it.

For either API, `stream=0&logs=1` attachment retrieves logs without reinitializing
the container or changing status or exit code. Events and Logs send HTTP status
as soon as the response opens, even before an event or log line is available.

`podman events --filter network=app-net` selects network events. With the `journald`
event driver, use the journal entry's timestamp: the logged payload omits it.
`podman inspect` exposes `DNSNames` for all reachable names and `Aliases` for
user-added DNS aliases; it omits secrets injected as environment variables.

Files in this skill

  • SKILL.md10.4 KB
  • coverage.json1.3 KB
  • references/apis-bindings-and-observability.md6.1 KB
  • references/containers-and-runtime.md6 KB
  • references/images-builds-and-artifacts.md6 KB
  • references/kubernetes-network-and-storage.md7.4 KB
  • references/machines-and-platforms.md4.8 KB
  • references/migration-and-configuration.md6.6 KB
  • references/quadlet.md6.3 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 ai-agents →

Comments

Loading comments…

Newsletter

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