1 of 21

What’s New in Podman 5.0

Matt Heon, Red Hat Containers Team

1

V0000000

2 of 21

What is Podman?

A Linux container engine that is:

  • Open Source
  • OCI Compliant
  • Daemonless
  • Secure
  • And, most recently… Multiplatform!
  • Podman 1.0 released 2019, Podman 4.0 released 2022

​

A (very) brief introduction

2

V0000000

3 of 21

What’s in a version number? Why does 5.0 matter?

Semantic Versioning 101

Podman, since our 1.0 release in 2019, has used semantic versioning

  • Major.Minor.Patch version scheme
  • Major version bumps reserved for breaking changes
  • But a major version bump is a marketing event!
  • Major versions should be exciting!

3

V0000000

4 of 21

Why Podman 5.0?

We had two years of miscellaneous small breaking changes

What do we need to break?

We made a lot of assumptions in the early versions of Machine that did not turn out to be good

Podman Machine

Many. Many More

We were accumulating legacy code that we really needed to remove

Deprecations and Removals

We were badly abusing our config file, containers.conf

Config Files

Podman 4.0 was released in February 2022. We began considering 5.0 in Fall 2023. Why?

4

V0000000

5 of 21

Scheduling

The first hurdle

Can only go 5.0 in a new Fedora release

Can’t have newer Podman in RHEL and CentOS

Have to align to Fedora 40 release schedule

5

V0000000

6 of 21

Podman Machine Changes

Problem: We have 4 completely different backends�Need to unify code between them to improve maintainability

Problem: QEMU is not up to the task on Mac�Slow filesharing, stability issues, poor performance generally

Problem: VM Images�Can’t keep using stock FCOS - need to control contents of the VM

Single Largest Part of Podman 5

6

V0000000

7 of 21

Unifying Code & Configs

Goal: Maximize code sharing for ease of maintenance

  • Per-provider config files unified
  • Major code refactor to unify common setup code
  • Ended up not eliminating much code in terms of line count
  • But almost all core setup code is now shared

7

V0000000

8 of 21

macOS Updates

Existing QEMU driver has major holes

  • There is a better solution: the native hypervisor (AppleHV)
  • Gets us fast filesharing & fast emulation
  • Add full support for AppleHV
  • Remove existing QEMU support
  • More work on the way here…

8

V0000000

9 of 21

Custom Images for Machine VMs

We have to control the contents of our VMs

  • Fixes versioning issues (v5 vs v4)
  • Faster boot time
  • Remain based on FCOS
  • Pull images as OCI artifacts for simplicity
  • Available on Quay - podman/machine-os

9

V0000000

10 of 21

Migration?

We talked about it, but it just wasn’t workable.

  • Existing VMs are based on the wrong images
  • Config files are the wrong format
  • On Mac, existing machines use a removed provider

All Machine VMs must be re-created during Podman v5 upgrade

10

V0000000

11 of 21

11

V0000000

12 of 21

containers.conf Rework

Fixing a Mistake

Our tools have a configuration file for a lot of behavior

  • Problem: we were treating it like a database, not a configuration file
  • Rewriting user configurations is bad for many reasons
  • Refactor out bits that are written by Podman, move to separate files
  • Backwards compatible so existing configs still work

​

12

V0000000

13 of 21

Deprecations, Removals, and Default Changes

Removal

  • CNI Support no longer compiled in by default (except on FreeBSD and RHEL 9)
  • New BoltDB databases can no longer be created - SQLite only for new installs

Changes in Defaults

  • Rootless networking now defaults to Passt
  • CLI Option Parsing: Not treating commas as separators

Deprecation

  • Cgroups v1 (We wanted to remove, but not possible at present)
  • A variety of options in podman machine that no longer make sense

13

V0000000

14 of 21

Other Breaking Changes

Format changes in command output

  • Generally, to improve Docker compatibility
  • Output of inspect and stats for containers has changed
  • We used to treat these as bugs, but people depend on the current behavior

14

V0000000

15 of 21

But what about features?

We have 3 months to make a release.

We committed to 18 breaking changes.

Do we have time to do more?

15

V0000000

16 of 21

Development

  • Started development November ‘23
  • Needed a release candidate out by February 13th for F40 Beta
  • First RC February 8th
  • 7 total RCs
  • Needed final release out by April 2nd
  • Final release March 19

16

V0000000

17 of 21

Aftermath

Podman v5.0 released on March 19th

  • Made it into Fedora 40
  • Supported in Podman Desktop since 1.10
  • Some things broke… Not the things we thought would break
  • Overall a smooth release

17

V0000000

18 of 21

Passt

A higher-performance alternative to slirp4netns

  • Made default because it felt like a natural upgrade
  • Not a 1:1 replacement for slirp
  • Very responsive upstream
  • Keeping slirp4netns as a dependency for the time being

18

V0000000

19 of 21

The Future

We’re not seriously considering Podman 6 at the moment, but if it happens, it will be February ‘25 at the earliest

Where are we going next?

Podman 5.1 was released in late May.

A small release with a number of new features.

Rosetta support!

5.1

Podman 6

Plans beyond 5.2 are hazy, but we expect at least 2 more Podman 5 releases in Fall

5.x

Currently planned for late July

Next Podman release in RHEL (9.5)

5.2

Development never stops, though we’re trying not to move as fast as we did with Podman 5

19

V0000000

20 of 21

Social media and communication

Github (Main) – http://github.com/containers/podman

Github (Netavark) – http://github.com/containers/netavark

Github (Aardvark) – http://github.com/containers/aardvark-dns

Web – http://podman.io

Twitter – @Podman_io

Youtube – https://www.youtube.com/c/Podman

​

20

V0000000

21 of 21

Questions

21

V0000000