Podman Keynames and File Versions
I like Quadlet.
Write a small .container file, drop it in ~/.config/containers/systemd/,
and systemd runs your container. No root daemon, no compose file, no
orchestration layer. Just files and systemd — the way I like it.
But there is one thing that always bites me when I build Quadlet deployments for other people’s machines: I do not control the target host.
Maybe it is a customer’s server on an old RHEL release. Maybe it is a community box running Debian stable from two years ago. Maybe it is a relative’s laptop. Whatever it is, I cannot just say “please upgrade to Podman 6.2”. I have to know: what is the oldest Podman version that can run my Quadlet?
“Tested with” is not good enough
The easy answer is to write “tested with Podman X.Y” in the README. I have done that many times. It is honest, but it is not precise:
- Just because I tested with 4.9 does not mean it breaks on 4.5.
- Just because it worked on my machine does not mean I did not accidentally use a key that only exists in 5.2.
- And when someone runs it on a host with 4.7 and it fails, they have no idea which key is the culprit.
To know the exact minimum version, I need to know when every keyname I use — and the unit type itself — first appeared. That data exists: it is in the Quadlet man pages of every Podman release. Nobody wants to diff man pages across 30 releases by hand.
Enter Mr LLM
This is exactly the kind of boring, mechanical job I hand to my new co-worker Mr LLM. He does not get tired, he does not skim, and he does not mind comparing 30 versions of the same document.
The instructions were simple: fetch the Quadlet man pages for every tagged
release from 4.4 (where Quadlet was introduced, Feb 2023) up to the
current release (6.2), extract every documented keyname per section, and
diff consecutive releases. A key’s version is simply the earliest release
where it shows up in the docs. Then cross-check against each release’s
RELEASE_NOTES.md to catch places where the docs lagged behind the
implementation.
The result is the tables below.
How to use the tables
- Find the table for your unit type (
.container,.volume, …). - List every keyname you actually use in your file.
- For each key, find the first version it appears in.
- Your minimum supported Podman version is the highest of those — plus the version that introduced the unit type itself.
Example: my .container file uses Image=, PublishPort=, Volume=,
UserNS= and HealthCmd=. UserNS= and HealthCmd= arrived in 4.5,
so that is my minimum — even though Image= and PublishPort= are old
4.4 keys.
[Unit]and[Service]sections are plain systemd passthrough — their keys follow systemd, not Podman, and are therefore not listed here.
Table 1 — File extensions (unit types)
| Extension | Section | Generated service | Podman version added |
|---|---|---|---|
.container |
[Container] |
foo.service |
4.4 (quadlet introduced) |
.volume |
[Volume] |
foo-volume.service |
4.4 |
.network |
[Network] |
foo-network.service |
4.4 |
.kube |
[Kube] |
foo.service |
4.4 |
.image |
[Image] |
foo-image.service |
4.8 |
.pod |
[Pod] |
foo-pod.service |
5.0 |
.build |
[Build] |
foo-build.service |
5.2 |
.artifact |
[Artifact] |
foo-artifact.service (experimental) |
5.7 |
Table 2 — [Container] keys (.container files)
| Podman version | Keys added |
|---|---|
| 4.4 (initial) | Image= Exec= ContainerName= Environment= EnvironmentFile= EnvironmentHost= User= Group= NoNewPrivileges= DropCapability= AddCapability= AddDevice= ReadOnly= SeccompProfile= Notify= Timezone= RunInit= Volume= Network= ExposeHostPort= PublishPort= Annotation= Label= PodmanArgs= |
| 4.4 (deprecated since) | RemapUsers= RemapUid= RemapGid= RemapUidSize= VolatileTmp= |
| 4.5 | Rootfs= Secret= LogDriver= Mount= IP= IP6= Tmpfs= UserNS= HealthCmd= HealthInterval= HealthRetries= HealthTimeout= HealthStartPeriod= HealthOnFailure= HealthStartupCmd= HealthStartupInterval= HealthStartupRetries= HealthStartupSuccess= HealthStartupTimeout= SecurityLabelDisable= SecurityLabelType= SecurityLabelFileType= SecurityLabelLevel= |
| 4.6 | AutoUpdate= Mask= Unmask= WorkingDir= Sysctl= Pull= HostName= SecurityLabelNested= |
| 4.7 | DNS= DNSOption= DNSSearch= PidsLimit= Ulimit= ShmSize= |
| 4.8 | ContainersConfModule= GlobalArgs= UIDMap= GIDMap= SubUIDMap= SubGIDMap= ReadOnlyTmpfs= |
| 5.0 | Entrypoint= StopTimeout= Pod= |
| 5.1 | GroupAdd= |
| 5.2 | NetworkAlias= StopSignal= LogOpt= |
| 5.3 | AddHost= CgroupsMode= StartWithPod= HealthLogDestination= HealthMaxLogCount= HealthMaxLogSize= |
| 5.5 | Memory= ReloadCmd= ReloadSignal= Retry= RetryDelay= |
| 5.7 | HttpProxy= |
| 5.8 | AppArmor= |
| 6.1 | ImageVolume= |
| 6.2 | Umask= |
Table 3 — [Pod] keys (.pod files)
| Podman version | Keys added |
|---|---|
| 5.0 (initial) | PodName= Network= PublishPort= Volume= PodmanArgs= GlobalArgs= ContainersConfModule= |
| 5.2 | NetworkAlias= |
| 5.3 | ServiceName=* AddHost= DNS= DNSOption= DNSSearch= IP= IP6= UserNS= UIDMap= GIDMap= SubUIDMap= SubGIDMap= |
| 5.4 | ShmSize= |
| 5.5 | HostName= |
| 5.6 | Label= ExitPolicy= |
| 5.7 | StopTimeout= |
Table 4 — [Kube] keys (.kube files)
| Podman version | Keys added |
|---|---|
| 4.4 (initial) | Yaml= ConfigMap= Network= PublishPort= UserNS= |
| 4.5 | LogDriver= |
| 4.6 | Mask= Unmask= ExitCodePropagation= PodmanArgs= |
| 4.7 | SetWorkingDirectory= AutoUpdate= |
| 4.8 | ContainersConfModule= GlobalArgs= KubeDownForce= |
| 5.7 | multiple Yaml= entries allowed per file |
| 6.0 | ServiceName=* |
Table 5 — [Network] keys (.network files)
| Podman version | Keys added |
|---|---|
| 4.4 (initial) | Driver= DisableDNS= Gateway= IPAMDriver= IPRange= IPv6= Internal= Label= Options= Subnet= |
| 4.6 | PodmanArgs= |
| 4.7 | DNS= NetworkName= |
| 4.8 | ContainersConfModule= GlobalArgs= |
| 5.5 | NetworkDeleteOnStop= |
| 5.6 | InterfaceName= |
| 6.0 | ServiceName=* |
Table 6 — [Volume] keys (.volume files)
| Podman version | Keys added |
|---|---|
| 4.4 (initial) | Copy= Device= Type= Options= User= Group= Label= |
| 4.6 | PodmanArgs= |
| 4.7 | VolumeName= |
| 4.8 | Driver= Image= ContainersConfModule= GlobalArgs= |
| 6.0 | UID= GID= ServiceName=* |
Table 7 — [Image] keys (.image files)
| Podman version | Keys added |
|---|---|
| 4.8 (initial) | Image= ImageTag= AllTags= Arch= OS= Variant= AuthFile= Creds= DecryptionKey= CertDir= TLSVerify= PodmanArgs= GlobalArgs= ContainersConfModule= |
| 5.5 | Retry= RetryDelay= |
| 5.6 | Policy= |
| 6.0 | ServiceName=* |
Table 8 — [Build] keys (.build files)
| Podman version | Keys added |
|---|---|
| 5.2 (initial) | ImageTag= File= SetWorkingDirectory= Target= Annotation= Arch= AuthFile= ContainersConfModule= DNS= DNSOption= DNSSearch= Environment= ForceRM= GlobalArgs= GroupAdd= Label= Network= PodmanArgs= Pull= Secret= TLSVerify= Variant= Volume= |
| 5.5 | Retry= RetryDelay= |
| 5.7 | BuildArg= IgnoreFile= |
| 6.0 | ServiceName=* |
Table 9 — [Artifact] keys (.artifact files, experimental)
| Podman version | Keys added |
|---|---|
| 5.7 (initial) | Artifact= AuthFile= CertDir= Creds= DecryptionKey= Quiet= Retry= RetryDelay= TLSVerify= PodmanArgs= GlobalArgs= ContainersConfModule= ServiceName= |
Table 10 — [Quadlet] shared section (all unit types)
| Podman version | Keys added |
|---|---|
| 5.3 | DefaultDependencies= |
| 6.2 | SetMountsDependency= |
Table 11 — [Install] section (all unit types)
| Podman version | Keys added |
|---|---|
| 4.4 | WantedBy= RequiredBy= Alias= |
| 5.5 | UpheldBy= |
Gotchas Mr LLM and I stumbled over
- *
ServiceName=: it was announced in the 5.3 release notes and works from 5.3, but it only showed up in the man pages in 6.0. For[Kube],[Network],[Volume],[Image]and[Build]the effective version is 5.3. This is exactly why the release-notes cross-check mattered — docs can lag behind reality. - Deprecated & removed:
RemapUsers=/RemapUid=/RemapGid=/RemapUidSize=(4.4) — replaced byUserNS=in 4.5, dropped shortly after.VolatileTmp=(4.4) — deprecated in 4.8 in favor ofReadOnlyTmpfs=.[Kube]Mask=/Unmask=(4.6) — moved to[Container]in 5.0.
- Version granularity is minor releases (x.y.0); a few keys may land in the first patch release of a cycle instead of the minor release.
- The man pages were split into one file per unit type in Podman 6.0; for
4.4–4.8 everything lived in
podman-systemd.unit(5).
The method, so you can repeat it
- Fetch
docs/source/markdown/podman-*.unit.5.md(and the per-type man pages from 4.9 on) for every tagged releasev4.4.0…v6.2.0from the Podman GitHub repository. - Extract all documented keynames (
### \Key=`` headings and table rows) per section, take the union per release, and diff consecutive releases. A key’s version = the earliest release in which it is documented. - Cross-check against each release’s
RELEASE_NOTES.md“Quadlet” / “Features” entries to catch docs lagging implementation.
The whole thing took only 15 minutes with the help of Mr LLM, plus a bit of human reviewing on top.
The takeaway
Writing “tested with Podman 5.2” tells the reader what I ran. Writing
“requires Podman ≥ 4.5 because of UserNS= and HealthCmd=” tells the
reader what they need.
If you ship Quadlets to hosts you do not control, take ten minutes with the tables above before you ship. Your future self — and whoever maintains that old Debian box — will thank you.
The data as CSV
For scripting — or for feeding straight to Mr LLM — here are the same two datasets in machine-readable form. Note that the keynames file lists each key only once, at the version where it first appeared in any section; check the tables above for the per-section picture.
version,keynames
4.4,Image= Exec= ContainerName= Environment= EnvironmentFile= EnvironmentHost= User= Group= NoNewPrivileges= DropCapability= AddCapability= AddDevice= ReadOnly= SeccompProfile= Notify= Timezone= RunInit= Volume= Network= ExposeHostPort= PublishPort= Annotation= Label= PodmanArgs= RemapUsers= RemapUid= RemapGid= RemapUidSize= VolatileTmp= Yaml= ConfigMap= UserNS= Driver= DisableDNS= Gateway= IPAMDriver= IPRange= IPv6= Internal= Options= Subnet= Copy= Device= Type= WantedBy= RequiredBy= Alias=
4.5,Rootfs= Secret= LogDriver= Mount= IP= IP6= Tmpfs= HealthCmd= HealthInterval= HealthRetries= HealthTimeout= HealthStartPeriod= HealthOnFailure= HealthStartupCmd= HealthStartupInterval= HealthStartupRetries= HealthStartupSuccess= HealthStartupTimeout= SecurityLabelDisable= SecurityLabelType= SecurityLabelFileType= SecurityLabelLevel=
4.6,AutoUpdate= Mask= Unmask= WorkingDir= Sysctl= Pull= HostName= SecurityLabelNested= ExitCodePropagation=
4.7,DNS= DNSOption= DNSSearch= PidsLimit= Ulimit= ShmSize= SetWorkingDirectory= VolumeName= NetworkName=
4.8,ContainersConfModule= GlobalArgs= UIDMap= GIDMap= SubUIDMap= SubGIDMap= ReadOnlyTmpfs= ImageTag= AllTags= Arch= OS= Variant= AuthFile= Creds= DecryptionKey= CertDir= TLSVerify= KubeDownForce=
5.0,Entrypoint= StopTimeout= Pod=
5.1,GroupAdd=
5.2,NetworkAlias= StopSignal= LogOpt=
5.3,AddHost= CgroupsMode= StartWithPod= HealthLogDestination= HealthMaxLogCount= HealthMaxLogSize= DefaultDependencies= ServiceName=
5.5,Memory= ReloadCmd= ReloadSignal= Retry= RetryDelay= UpheldBy= NetworkDeleteOnStop=
5.6,ExitPolicy= Policy= InterfaceName=
5.7,HttpProxy= AppArmor= Artifact= Quiet= BuildArg= IgnoreFile=
6.1,ImageVolume=
6.2,Umask= SetMountsDependency=
version,files
4.4,.container .volume .network .kube
4.8,.image
5.0,.pod
5.2,.build
5.7,.artifact
Same caveat as the tables: the 5.3 row contains ServiceName=, which
works from 5.3 but only appears in the man pages from 6.0.