Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Platypuschan/0036f0c5514cf14d9b97233aefffc3c2 to your computer and use it in GitHub Desktop.
Save Platypuschan/0036f0c5514cf14d9b97233aefffc3c2 to your computer and use it in GitHub Desktop.
how to pull from docker hub using podman/buildah
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment