OSX (?) ansible docker module issue

1,103 views
Skip to first unread message

Laurent PETIT

unread,
Jun 23, 2014, 5:11:03 PM6/23/14
to ansible...@googlegroups.com
Hello,

On my OSX box, I'm unable to call the docker command from the docker module.

I tried to install docker both from homebrew, and then deinstall and install from pip.

Both times, I get this error:

failed: [docker2] => (item={'subdomain': 'xxx', 'http': 39003, 'https': 39005, 'docker_image': 'docker-registry.xxx.com/my-img'}) => {"failed": true, "item": {"docker_image": "docker-registry.xxx.com/my-img", "http": 39003, "https": 39005, "subdomain": "xxx"}, "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/home/my-user/.ansible/tmp/ansible-tmp-1403557661.52-85899692189810/docker", line 312, in <module>
    from docker.client import APIError as DockerAPIError
ImportError: No module named docker.client

Do you have any idea what is wrong with that?

Ansible version on my server maybe ?

Paul Durivage

unread,
Jun 23, 2014, 5:21:34 PM6/23/14
to ansible...@googlegroups.com
Hi Laurent,

The Docker module requires the Docker python client.  Run:

pip install docker-py


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKVVxfoQSqi0QAV0fjwPmC4-eZdkg_wBTN28PB6wjxQjuUCX1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Laurent PETIT

unread,
Jun 23, 2014, 5:27:09 PM6/23/14
to ansible...@googlegroups.com
Oh indeed, (blush)

I added a pip step to my docker hosts setup.yml playbook,

Thanks !


Reply all
Reply to author
Forward
0 new messages