How to Configure Default Search Registries in Podman
Jan 21, 2021
podman search httpd --filter is-automated=false --filter is-official=false --filter stars=0 --tls-verify=false
When we run the command `podman search` it finds and gets some images from some registries. So how podman selects the registries it will search into?
So this question’s answer is hiding in a conf file named registries.conf
You can find this file in /etc/containers directory.
For default search registries you can configure this file like below.
vi /etc/containers/registries.conf
[registries.search]
registries = ["registry.access.redhat.com", "quay.io"]
and if you want to disable tls-verify you can add the entry below in same file.
[registries.insecure]
registries = ['yourregistry:yourport']
now you can run podman search command without tls-verify .
podman search httpd --filter is-automated=false --filter is-official=false --filter stars=0