Docker not Pulling from Registry

20 views
Skip to first unread message

Shapath Neupane

unread,
Mar 27, 2015, 12:03:29 PM3/27/15
to ansible...@googlegroups.com
I'm trying to install Docker images using Ansible.

tasks: 
  - name: Fetch Docker Images
    docker:
        name: RethinkDB
        image: rethinkdb:latest
        state: present


I DON'T have any docker images installed in the target machine. The target box is a Vagrant Box.


When I provision the box. The module is not pulling anything from the registry.

Am I doing something stupid or is the docker_module doing something silly?


###########
Log:
###

TASK: [Fetch Docker Images] ***************************************************
<127.0.0.1>
<127.0.0.1> state=present image=rethinkdb:latest
<127.0.0.1> IdentityFile=/Users/shapath/Developer/vagrant/box/.vagrant/machines/default/virtualbox/private_key ConnectTimeout=10 KbdInteractiveAuthentication=no PasswordAuthentication=no UserKnownHostsFile=/dev/null User=vagrant ControlPath=/Users/shapath/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey StrictHostKeyChecking=no ControlMaster=auto Port=2222 ControlPersist=60s
<127.0.0.1>
<127.0.0.1> IdentityFile=/Users/shapath/Developer/vagrant/box/.vagrant/machines/default/virtualbox/private_key ConnectTimeout=10 KbdInteractiveAuthentication=no 'sudo -k && sudo -H -S -p "[sudo via ansible, key=opcedtxuxqdozdypgmkckkuefeloxxgg] password: " -u root /bin/sh -c '"'"'echo SUDO-SUCCESS-opcedtxuxqdozdypgmkckkuefeloxxgg; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1427463903.72-121429371624026/docker; rm -rf /home/vagrant/.ansible/tmp/ansible-tmp-1427463903.72-121429371624026/ >/dev/null 2>&1'"'"'' PasswordAuthentication=no UserKnownHostsFile=/dev/null User=vagrant ControlPath=/Users/shapath/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey StrictHostKeyChecking=no ControlMaster=auto Port=2222 ControlPersist=60s
ok: [default] => {"ansible_facts": {"docker_containers": []}, "changed": false, "failed": false, "msg": "pull 0 restarted 0 started 0 created 0 stopped 0 removed 0 killed 0  container(s) running image rethinkdb:latest with command None"}
Reply all
Reply to author
Forward
0 new messages