Can I get a newer podman on Silverblue 29?

The podman version included in the base image is kind of old at this point (0.8.4, latest is 0.9.3.1). Right now I have a weird issue with --net=host and the Debian Docker image (which is weird because this never happened before…), but I need to see if it still reproduces on the latest podman (and even then, I’d want to be able to install it).

The COPR is probably not going to work because you can’t override base packages. The best idea I have right now is maybe rpm-ostree usroverlay + extract the podman rpm contents over the existing install. That doesn’t quite feel right though, so I’m trying to see if I can get a newer version in a “proper” way.

1 Like

FWIW as a side note, the podman issue I’ve found is:

 ryan@fedora  ~  sudo podman run --rm --net=host debian:jessie useradd user
useradd: failure while writing changes to /etc/passwd
 ✘ ryan@fedora  ~  

It works without --net=host or with pretty much any other image.

Sure you can! The command is just a little different (rpm-ostree override replace):

$ rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-workstation:fedora/29/x86_64/silverblue
                   Version: 29.20180927.n.0 (2018-09-28 02:36:13)
                    Commit: 5800c36d92af84e671230773ba3f64ab341ee73d273dfecddbdd8657292a5911
              GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4

  ostree://fedora-workstation:fedora/29/x86_64/silverblue
                   Version: 29_Beta.1.5 (2018-09-20 01:13:35)
                    Commit: d5b60890b8c319c87622575fe6d31bf32fd4a135949c81e6ce98481b8ece9c6f
              GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4

$ rpm -q podman
podman-0.8.4-1.git9f9b8cf.fc29.x86_64

$ curl -LO https://kojipkgs.fedoraproject.org//packages/podman/0.9.3.1/1.git1cd906d.fc29/x86_64/podman-0.9.3.1-1.git1cd906d.fc29.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8025k  100 8025k    0     0  1042k      0  0:00:07  0:00:07 --:--:-- 1529k

$ sudo rpm-ostree override replace podman-0.9.3.1-1.git1cd906d.fc29.x86_64.rpm 
[sudo] password for miabbott: 
Checking out tree 5800c36... done
Enabled rpm-md repositories: updates updates-testing fedora
Updating metadata for 'updates': [=============] 100%
rpm-md repo 'updates'; generated: 2018-02-20 19:18:14
Updating metadata for 'updates-testing': [=============] 100%
rpm-md repo 'updates-testing'; generated: 2018-10-01 03:22:58
Updating metadata for 'fedora': [=============] 100%
rpm-md repo 'fedora'; generated: 2018-09-29 10:01:02
Importing metadata [=============] 100%
Resolving dependencies... done
Will download: 3 packages (189.6 kB)
  Downloading from fedora: [=============] 100%
Importing (3/3) [=============] 100%
Applying 1 override and 3 overlays
Processing packages (5/5) [=============] 100%
Running pre scripts... 0 done
Running post scripts... 15 done
Writing rpmdb... done
Writing OSTree commit... done
Upgraded:
  podman 1:0.8.4-1.git9f9b8cf.fc29 -> 1:0.9.3.1-1.git1cd906d.fc29
Added:
  fuse-overlayfs-0.1-5.dev.gitd40ac75.fc29.x86_64
  fuse3-libs-3.2.3-14.fc29.x86_64
  slirp4netns-0.1-2.dev.git0037042.fc29.x86_64
Run "systemctl reboot" to start a reboot

$ rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
  ostree://fedora-workstation:fedora/29/x86_64/silverblue
                   Version: 29.20180927.n.0 (2018-09-28 02:36:13)
                BaseCommit: 5800c36d92af84e671230773ba3f64ab341ee73d273dfecddbdd8657292a5911
              GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4
      ReplacedBasePackages: podman 1:0.8.4-1.git9f9b8cf.fc29 -> 1:0.9.3.1-1.git1cd906d.fc29

● ostree://fedora-workstation:fedora/29/x86_64/silverblue
                   Version: 29.20180927.n.0 (2018-09-28 02:36:13)
                    Commit: 5800c36d92af84e671230773ba3f64ab341ee73d273dfecddbdd8657292a5911
              GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4

  ostree://fedora-workstation:fedora/29/x86_64/silverblue
                   Version: 29_Beta.1.5 (2018-09-20 01:13:35)
                    Commit: d5b60890b8c319c87622575fe6d31bf32fd4a135949c81e6ce98481b8ece9c6f
              GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4

It looks like your issue is fixed in that newer version:

$ rpm -q podman
podman-0.9.3.1-1.git1cd906d.fc29.x86_64

$ sudo podman run --rm --net=host debian:jessie useradd user
[sudo] password for miabbott: 

$ echo $?
0
2 Likes

Thanks! This did the trick!