Created
November 27, 2019 06:08
-
-
Save isomorphisms/3114ab86960656a729a6b4653001aae2 to your computer and use it in GitHub Desktop.
how to pull from docker hub using podman/buildah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On void linux. | |
Under `/etc/containers/` there is a file called `registries.conf`. It is complemented by `man 5 containers-registries.conf`. | |
Change (for me lines 11-12) which say | |
[registries.search] | |
registries = [] | |
to | |
``` | |
[registries.search] | |
registries = ['docker.io'] | |
``` | |
(drawn from https://www.projectatomic.io/blog/2018/05/podman-tls/) | |
--------------- | |
Without the above you won't be able to use basic `podman` functions. You might get errors like: | |
- `Error: unable to pull fedora:28: image name provided is a short name and no search registries are defined in the registries config file.` | |
- `Error: unable to pull stripe/stripe-cli: image name provided is a short name and no search registries are defined in the registries config file.` | |
-------- | |
Various documentation (redhat blog entries, `man podman` pages) say that dockerhub is a default, but without this step it's clearly not. | |
Good luck. Feel free to use the comment box below if you have a github account. |
Nice. Worked for Ubuntu 22.
mod unqualified-search-registries = ["docker.io"]
in /etc/containers/registries.conf
if you are using podman version 4.3.1
Thank you!!! like!! unqualified-search-registries = ["docker.io"] in /etc/containers/registries.conf if you are using podman version 4.3.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
arch; just added these 2 lines to file and it works