Does podman run (among other commands) have a noconfirm type of option/config? Like apt’s apt-get install --yes pacman
, which will install pacman and automatically answer yes to any questions that might pop-up.
In podman, when you have a conf like this in /etc/containers/registries.conf:
unqualified-search-registries = ['some-mirror.org', 'docker.io']
and you run something like:
podman run -it --rm archlinux bash -C "echo hello world"
It might happen that both of those registries have a container called archlinux
. In this case podman will stop and ask you to choose. I would like to just default to the first option.
Here’s a blog post about container registries and podman (which didn’t help but it’s still interesting): https://www.redhat.com/sysadmin/manage-container-registries
Just specify which registry you want it from:
podman run -it --rm docker.io/archlinux bash -C "echo hello world"