The default url is correct, why are you setting it to that address? from https://docs.ansible.com/ansible/latest/collections/community/docker/docker_login_module.html registry_url string The registry URL. Default: "https://index.docker.io/v1/"
via CLI $ docker info | grep Registry Registry: https://index.docker.io/v1/ On Wed, Jun 28, 2023 at 2:29 PM William Flow <[email protected]> wrote: > so bottom line I am using the community.docker collection and my code is > pretty simple to start I just want to login to my registry and i am failing > and do not have > a clue as to why my code is below and I get this error > > { > "msg": "Error connecting: Error while fetching server API version: > ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))", > "invocation": { > "module_args": { > "registry_url": "registry.hub.docker.com", > "username": "xxxxxxxxx", > "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", > "reauthorize": true, > "docker_host": "unix://var/run/docker.sock", > "api_version": "auto", > "timeout": 60, > "tls": false, > "use_ssh_client": false, > "validate_certs": false, > "debug": false, > "state": "present", > "config_path": "/root/.docker/config.json", > "tls_hostname": null, > "ca_cert": null, > "client_cert": null, > "client_key": null, > "ssl_version": null > } > }, > "_ansible_no_log": null, > "changed": false > } > > > --- > - name: docker > hosts: localhost > gather_facts: false > collections: > - community.docker > > - name: Docker Login > community.docker.docker_login: > registry_url: registry.hub.docker.com > username: xxxxxxxxx > password: XXXXXXXXX > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/f6565b9c-9641-489a-898f-ad941a91c819n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f6565b9c-9641-489a-898f-ad941a91c819n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- - Andrew "lathama" Latham - -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2Bqj4S-Xcjt_Ady8HXYubutVsu1XLgLW8%3DRP-5SXJQ_9_UpzDQ%40mail.gmail.com.
