💭 How to pull from images from docker.io with podman

!https://gist.github.com/isomorphisms/3114ab86960656a729a6b4653001aae2

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.

By default podman will not pull images from docker.io and will need setup. This guide worked for me.

Note

This post is a thought. It’s a short note that I make about someone else’s content online #thoughts

Connections

Related tags and posts connected to this entry.