# Ansible 2.1.0 docker\_container module not pulling image when missing on remote host

**URL:** <https://forum.ansible.com/t/ansible-2-1-0-docker-container-module-not-pulling-image-when-missing-on-remote-host/22364>\
**Category:** Ansible Project\
**Created:** [August 24, 2016, 6:22am UTC](https://forum.ansible.com/t/ansible-2-1-0-docker-container-module-not-pulling-image-when-missing-on-remote-host/22364 "2016-08-24T06:22:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishan\_jain](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Post date:** [August 24, 2016, 6:22am UTC](https://forum.ansible.com/t/ansible-2-1-0-docker-container-module-not-pulling-image-when-missing-on-remote-host/22364/1 "2016-08-24T06:22:37Z")

</div>

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.
