Summary: | app-containers/podman: example registries configuration seemingly broken/unsuitable for distribution | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | John Helmert III <ajak> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PullRequest |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/33030 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
John Helmert III
2022-06-05 19:57:37 UTC
After having an issue pulling an image with the default registry configuration on Gentoo I posted an issue on the upstream podman github (I will link it soon but my account is still new sorry!). I was told this was not the default used in Fedora but rather it is used for testing in the upstream CI. Therefore it makes sense that this isn't used for distributions and instead different defaults should be used. Can the default registries.conf file be changed so no one has to go through this troubleshooting to be able to pull their containers? I found the default Fedora registries.conf by searching for "Fedora registries.conf". I believe the issue is because the defaults used in the upstream CI uses the google mirror mirror.gcr.io in order to avoid hitting the rate limits on docker hub. Unfortunately the mirror is unsuitable for distribution as not everything is cached there. Can we change the default registries.conf to the same as other distributions please? Thank you! Added on to my last post https://github.com/containers/podman/issues/19409 is the issue i posted upstream. Both debian and arch wiki pages on podman suggest adding a line as follows and creating the file manually echo 'unqualified-search-registries=["docker.io", "quay.io"]' > $HOME/.config/containers/registries.conf The default example is likely to confuse idiots like me otherwise when it doesn't always work. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275aeff423d63b6cdde5b508f59d5af5248f16c0 commit 275aeff423d63b6cdde5b508f59d5af5248f16c0 Author: Rahil Bhimjiani <rahil3108@gmail.com> AuthorDate: 2023-09-24 10:49:19 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2023-09-25 03:45:17 +0000 app-containers/podman: add 4.5.0-r1 few improvements to ebuild. 1) use shell-completion.eclass replacing bash-completino-r1 2) add app-containers/containers-common as dep & adjust other deps 3) dont install seccomp.json,policy.json,registries.conf as it is installed by containers-common 4) removed non-amd64 keywords as containers-common is only available on amd64 for now I'll soon be working on podman version bump with live version too. Closes: https://github.com/gentoo/gentoo/pull/33030 Closes: https://bugs.gentoo.org/902569 Closes: https://bugs.gentoo.org/849863 Closes: https://bugs.gentoo.org/914597 Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org> .../containers-common-0.56.0-r1.ebuild | 68 ++++++++++ app-containers/podman/podman-4.5.0-r1.ebuild | 149 +++++++++++++++++++++ 2 files changed, 217 insertions(+) |