# Docker Image not able to start postgres

**URL:** <https://forum.ansible.com/t/docker-image-not-able-to-start-postgres/27124>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 27, 2018, 8:44am UTC](https://forum.ansible.com/t/docker-image-not-able-to-start-postgres/27124 "2018-03-27T08:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mrinal\_Pande](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mrinal\_Pande](https://forum.ansible.com/u/Mrinal_Pande)\
**Post date:** [March 27, 2018, 8:44am UTC](https://forum.ansible.com/t/docker-image-not-able-to-start-postgres/27124/1 "2018-03-27T08:44:47Z")

</div>

Hello everyone,

I installed the awx for poc was able to get it up and running. I removed it because I wanted to test something on the machine.  
Now I am unable to install it again on the machine. Below is the error. The error states that postgres is unable to start due to  
the use of a deprecated API but I am unable to debug which API is it talking about. Any idea on the same.

The task which fails: “Activate postgres container”

TASK [local\_docker : Activate postgres container] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Error connecting: API versions below 1.21 are no longer supported by this library.”}  
to retry, use: --limit @/root/ansible\_awx/installer/install.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=4 changed=0 unreachable=0 failed=1

Thanks  
Mrinal

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [March 27, 2018, 5:50pm UTC](https://forum.ansible.com/t/docker-image-not-able-to-start-postgres/27124/2 "2018-03-27T17:50:03Z")

</div>

Looks like your Docker might be out of date? Try updating and see if that helps.

---

<div class="post-metadata">

**Author:** ![Mrinal\_Pande](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mrinal\_Pande](https://forum.ansible.com/u/Mrinal_Pande)\
**Post date:** [March 28, 2018, 3:20am UTC](https://forum.ansible.com/t/docker-image-not-able-to-start-postgres/27124/3 "2018-03-28T03:20:25Z")

</div>

Yes, I think that was a problem also Updated the dockerpy module just to be sure.

Thanks  
Mrinal
