You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Only append the destination argument if the image name is not a URL
if'/'notinself.name:
args.append(dest_string)
So in my case the module executes only podman push jlk/archlinux and the destination gets resolved to docker.io via unqualified-search-registries configuration. However, if the destination was not omitted, the command would be podman push jlk/archlinux jlk.fjfi.cvut.cz:5000/jlk/archlinux (and running this manually succeeds).
Version of the containers.podman collection: ansible-galaxy collection list | grep containers.podman
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Pushing an image with
/
in the name to a remote registry does not work.Steps to reproduce the issue:
Set up a registry at
localhost:5000
Build an image with a slash in the name, e.g.
jlk/archlinux
(or justfoo/bar
)Try to push the image to the remote registry with the
containers.podman.podman_image
moduleDescribe the results you received:
An error (see below).
Describe the results you expected:
Successful push.
Additional information you deem important (e.g. issue happens only occasionally):
The code only appends the destination argument when
/
is not present in the name:ansible-podman-collections/plugins/modules/podman_image.py
Lines 755 to 757 in c3b38b5
So in my case the module executes only
podman push jlk/archlinux
and the destination gets resolved todocker.io
viaunqualified-search-registries
configuration. However, if the destination was not omitted, the command would bepodman push jlk/archlinux jlk.fjfi.cvut.cz:5000/jlk/archlinux
(and running this manually succeeds).Version of the
containers.podman
collection:ansible-galaxy collection list | grep containers.podman
Output of
ansible --version
:Output of
podman version
:Playbok you run with ansible (e.g. content of
playbook.yaml
):Command line and output of ansible run with high verbosity
ansible-playbook playbooks/update_container_images.yml -vvv
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: