Docker module giving error after image is pulled

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: 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

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

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/ 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.