# Hi, can someone help me please ? it's about docker\_image is not pushing to docker hub

**URL:** <https://forum.ansible.com/t/hi-can-someone-help-me-please-its-about-docker-image-is-not-pushing-to-docker-hub/25945>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 7, 2017, 9:41am UTC](https://forum.ansible.com/t/hi-can-someone-help-me-please-its-about-docker-image-is-not-pushing-to-docker-hub/25945 "2017-11-07T09:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arkan\_M\_Gerges\_Anabi](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Arkan\_M\_Gerges\_Anabi](https://forum.ansible.com/u/Arkan_M_Gerges_Anabi)\
**Post date:** [November 7, 2017, 9:41am UTC](https://forum.ansible.com/t/hi-can-someone-help-me-please-its-about-docker-image-is-not-pushing-to-docker-hub/25945/1 "2017-11-07T09:41:31Z")

</div>

Hi guys,

I’m trying for more than 2 days to make this work, I’m using jenkins with ansible. My ansible role is like this:

- name: Login into docker hub  
docker\_login:  
username: “username”  
password: “pass”  
email: “me@myemail”  
docker\_host: “192.168.99.100”  
tls: true  
cert\_path: “path to docker certificate”  
key\_path: “path to docker key”

- name: Register image to docker hub  
docker\_image:  
name: “username/myimagename”  
repository: “username/myimagename”  
push: yes  
tag: “1.0.1”  
docker\_host: “192.168.99.100”  
tls: true  
cert\_path: “path to docker certificate”  
key\_path: “path to docker key”

the problem is, the above code succeeds but it does not push the image to my docker hub account.

I’m having windows 10, running ansible from a jenkins that is running inside docker container, the docker container has ansible installed also. Docker is installed inside windows 10, and it’s api is 192.168.99.100, and from there I can push the image manually and it will work,  
but with ansible with docker\_image module I could not do it.

The full output from jenkins is like this:
