# Ansible not pulling images from private Docker repository

**URL:** <https://forum.ansible.com/t/ansible-not-pulling-images-from-private-docker-repository/17499>\
**Category:** Ansible Developer\
**Created:** [February 11, 2015, 1:39am UTC](https://forum.ansible.com/t/ansible-not-pulling-images-from-private-docker-repository/17499 "2015-02-11T01:39:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felix\_Glaske](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Felix\_Glaske](https://forum.ansible.com/u/Felix_Glaske)\
**Post date:** [February 11, 2015, 1:39am UTC](https://forum.ansible.com/t/ansible-not-pulling-images-from-private-docker-repository/17499/1 "2015-02-11T01:39:11Z")

</div>

It seems this problem already hit some other people and it should already be solved based on this issue: [https://github.com/ansible/ansible-modules-core/issues/188](https://github.com/ansible/ansible-modules-core/issues/188)  
I’m running the latest version 1.8.2 of Ansible and have the same problem (again?).  
I explained my setup in this issue [https://github.com/ansible/ansible/issues/10209](https://github.com/ansible/ansible/issues/10209).

Any ideas?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 11, 2015, 1:29pm UTC](https://forum.ansible.com/t/ansible-not-pulling-images-from-private-docker-repository/17499/2 "2015-02-11T13:29:14Z")

</div>

the merge is in the current devel branch, test if that fixes your issue.

---

<div class="post-metadata">

**Author:** ![Felix\_Glaske](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Felix\_Glaske](https://forum.ansible.com/u/Felix_Glaske)\
**Post date:** [February 11, 2015, 8:35pm UTC](https://forum.ansible.com/t/ansible-not-pulling-images-from-private-docker-repository/17499/3 "2015-02-11T20:35:14Z")

</div>

I’m running

ansible --version  
ansible 1.9 (devel 13d788021f) last updated 2015/02/12 09:28:27 (GMT +1300)  
lib/ansible/modules/core: (detached HEAD 8bccb27c41) last updated 2015/02/12 09:27:45 (GMT +1300)  
lib/ansible/modules/extras: (detached HEAD d94d0ce70b) last updated 2015/02/11 19:33:25 (GMT +1300)  
v2/ansible/modules/core: (detached HEAD 095f8681db) last updated 2015/02/11 19:33:45 (GMT +1300)  
v2/ansible/modules/extras: (detached HEAD d94d0ce70b) last updated 2015/02/11 19:34:06 (GMT +1300)  
configured module search path = None

and here are my test tasks

- name: Docker test 1  
docker:  
image: [registry.foo-dev.com:8888/test](http://registry.foo-dev.com:8888/test)  
username: foo  
password: foo  
state: running  
ignore\_errors: true  
tags:

- foo

- name: Docker test 2  
docker:  
image: test  
registry: [registry.foo-dev.com:8888](http://registry.foo-dev.com:8888)  
username: foo  
password: foo  
state: running  
ignore\_errors: true  
tags:

- foo

The first gives me “msg: failed to login to the remote registry, check your username/password.”  
and the second “msg: Docker API error: No such image: test (tag: latest)”

and running on the host directly “[registry.foo.com:8888/test](http://registry.foo.com:8888/test)” will start to pull the image.

So it does not look fixed for me
