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

  • @hfkldjbuq@beehaw.org
    link
    fedilink
    1
    edit-2
    2 years ago

    in that case i podman ... registry/image ....

    you probably can do some auto input redirect on the command line tho

    • @TiukuOP
      link
      12 years ago

      Yes, one can indeed specify the registry explicitly.

      I guess I’m looking for more docker-like experience, where I can specify the mirrors once and never worry about them again.