# Docker module giving error after image is pulled

**URL:** <https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710>\
**Category:** Ansible Project\
**Created:** [February 29, 2016, 11:13pm UTC](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710 "2016-02-29T23:13:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 29, 2016, 11:13pm UTC](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710/1 "2016-02-29T23:13:45Z")

</div>

I have a role that runs nginx in a docker container using the official nginx image from docker hub. The docker task returns the following error after it pulls the image:

“failed”: true, “msg”: “Unrecognized status from pull.”, “status”: “[docker.io/library/nginx:](http://docker.io/library/nginx:) this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker.”

I tried completely removing the image and associated containers from the machines that were running it and then I re-ran the playbook that executes this task, but it still gives the same error.

Does anyone know a way to fix this?

Thanks,  
Guy

---

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 29, 2016, 11:16pm UTC](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710/2 "2016-02-29T23:16:21Z")

</div>

For the record, this was working fine a couple of hours ago.

---

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 29, 2016, 11:48pm UTC](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710/3 "2016-02-29T23:48:45Z")

</div>

I figured it out - I didn’t realise, but the installation instructions for docker on Ubuntu have changed. I went through the instructions at [https://docs.docker.com/engine/installation/linux/ubuntulinux/](https://docs.docker.com/engine/installation/linux/ubuntulinux/) and the issue is now fixed. I guess the older lxc-docker package was configured to use the v1 registry endpoint. After installing the new docker-engine package my docker tasks are working again.
