Hmmm.... I don't have a private registry running/available at the moment, is this something you might like to help work on/debug?
We can definitely private some pointers. --Michael On Thu, Sep 4, 2014 at 9:33 PM, Matt Hughes <[email protected]> wrote: > I'm using master branch. To be specific, commit > 4f55bcc298669f61ee11fb244ec447762b01edba. > > > > On Thursday, September 4, 2014 9:31:14 PM UTC-4, Michael DeHaan wrote: > >> For starters, can you share the version of Ansible you are using? >> >> >> >> >> On Thu, Sep 4, 2014 at 4:10 PM, Matt Hughes <[email protected]> wrote: >> >>> Trying to use the docker module to run images from a docker private >>> registry. >>> >>> I'm using the current master branch of Ansible as that supports >>> username/password. Playbook is: >>> >>> - name: run app >>> docker: registry=https://private-repo.com:443 image= >>> private-repo.com:443/busycorp/app:1.0.0 username={{ >>> docker_registry_username }} password={{ docker_registry_password }} email= >>> [email protected] >>> >>> It appears to successfully log in, but can't find that tag: >>> >>> <test> ESTABLISH CONNECTION FOR USER: mhughes >>> <test> REMOTE_MODULE docker registry=https://private-repo.com:443 image= >>> private-repo.com:443/busicorp/app:1.0.0 username=mhughes >>> password=VALUE_HIDDEN [email protected] >>> >>> <test> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s >>> -o ControlPath=/Users/mhughes/.ansible/cp/ansible-ssh-%h-%p-%r -o >>> KbdInteractiveAuthentication=no -o PreferredAuthentications= >>> gssapi-with-mic,gssapi-keyex,hostbased,publickey -o >>> PasswordAuthentication=no -o ConnectTimeout=10 test /bin/sh -c 'mkdir -p >>> $HOME/.ansible/tmp/ansible-tmp-1409858894.29-223607362771114 && chmod >>> a+rx $HOME/.ansible/tmp/ansible-tmp-1409858894.29-223607362771114 && >>> echo $HOME/.ansible/tmp/ansible-tmp-1409858894.29-223607362771114' >>> <test> PUT /var/folders/_n/6r_pnw9d1jg33_chqmcpyvn00000gn/T/tmpm2Jl5K >>> TO /home/clduser/.ansible/tmp/ansible-tmp-1409858894.29- >>> 223607362771114/docker >>> <test> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s >>> -o ControlPath=/Users/mhughes/.ansible/cp/ansible-ssh-%h-%p-%r -o >>> KbdInteractiveAuthentication=no -o PreferredAuthentications= >>> gssapi-with-mic,gssapi-keyex,hostbased,publickey -o >>> PasswordAuthentication=no -o ConnectTimeout=10 test /bin/sh -c 'sudo -k && >>> sudo -H -S -p "[sudo via ansible, key=mlompfrrydppecgwsjntwvxuyqknbxtf] >>> password: " -u root /bin/sh -c '"'"'echo SUDO-SUCCESS- >>> mlompfrrydppecgwsjntwvxuyqknbxtf; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 >>> /usr/bin/python >>> /home/clduser/.ansible/tmp/ansible-tmp-1409858894.29-223607362771114/docker; >>> rm -rf /home/clduser/.ansible/tmp/ansible-tmp-1409858894.29-223607362771114/ >>> >/dev/null 2>&1'"'"'' >>> failed: [test] => {"changed": true, "failed": true} >>> msg: Docker API error: No such image: private-repo.com:443/busicorp/ >>> app:1.0.0 (tag: 1.0.0) >>> >>> FATAL: all hosts have already failed -- aborting >>> >>> >>> >>> I have tried with and without the registry name in the image. I can >>> take the same image parameter above and successfully do a 'docker pull' on >>> the machine. Is there some way to see the logs of ansible on the remote >>> server so I can see exactly what commands it is calling? Or maybe there is >>> just an issue with use of Docker namespaces? >>> >>> -- >>> 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 post to this group, send email to [email protected]. >>> >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/ansible-project/412cf480-7e21-4790-9725- >>> 98604b4680f1%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/412cf480-7e21-4790-9725-98604b4680f1%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/df1ffc32-1a99-40e3-927b-29bfa44ec738%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/df1ffc32-1a99-40e3-927b-29bfa44ec738%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwAKaP-V24Bb6G6U_QRVZ0%3D6Uen6FKcy763BAH5QJeKaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
