podman ignoring /etc/containers/registries.conf and .conf.d when in rootless mode

Bug #2062838 reported by Hadmut Danisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libpod (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

in contrast to docker, podman does not have a default registry to pull from, but uses /etc/containers/registries.conf and .conf.d to resolve the names.

E.g. the file coming with ubuntu, i.e. /etc/containers/registries.conf.d/shortnames.conf

resolves alpine to docker.io/library/alpine

This usually works for both root and other users (non-root mode).

In 24.04 beta it works only for root.

i.e. a

podman pull alpine

works when run as root, but not as a normal user, it can't resolve the source then. strace shows that it does not even look for a registrries.conf.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: podman 4.9.3+ds1-1build2
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Fri Apr 19 21:29:50 2024
InstallationDate: Installed on 2024-04-19 (0 days ago)
InstallationMedia: Lubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: libpod
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.