The documentation says:

*Repository path and tag used to create the container. If an image is not 
found or pull is true, the image will be pulled from the registry.*

But a simple usage of docker_container:

*    - name: start docker container*
*      docker_container:*
*        name: container1*
*        image: image:1.0*
*        state: started*

Yields the error:

fatal: [docker1]: FAILED! => {"changed": false, "failed": true, "msg": 
"Error creating container: 404 Client Error: Not Found (\"No such image: 
image:1.0.0\")"}


The docker login is done on the remote docker host to pull from my private 
docker repo and the playbook works fine after i manually executed the 
docker pull command. I thought the module will try to pull image if not 
found locally.

-- 
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/3508bfbd-eb94-421b-bdd1-049a44792d63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to