Docker support for docker-py 1.6

Hi

What is the status for updating the support for newer Docker versions for the ansible-docker module?

The currently shipped version seems to be outdated and won’t run with the latest docker-py library.

I did a few quick modifications locally just to get it running again, but the new docker API contained a whole lot more than before. So I’d like to know if there is any ongoing effort in this area?

Especially the port redirection needs some love to reflect the capabilities the original docker API, this is also reflected in docker-py. On top of that there is functionality not supported today like working directories, linking, cpu throttling etc.

/Magnus

I’ve already merged in a pull request today, check it out!

There’s updates to the docker module and also a docker_image module.

Hi

Cool, that looks like what I was hoping for.

/Magnus

(attachments)

ma.png

Hi

Looking at the latest source for docker ‘priviledged’ is still included on line 390:
https://github.com/ansible/ansible/blob/devel/library/cloud/docker#L390

This gives me an error with the latest docker.py from git. It has moved from create_container to start. See:

Let’s have it work with latest.

Send me some pull requests along and we’ll get them merged in.