install awx on offline server

Hi,

I’ve been struggling to install awx on an offline server with no internet.
I’m trying to install from local registry I’ve created but I keep getting the same error:

TASK [image_build : Build sdist builder image] **********************************************************************************************************************************************************************************************

fatal: [localhost → localhost]: FAILED! => {“changed”: false, “msg”: “Error building awx_sdist_builder - code: None, message: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on xxx.xxx.xxx.xxx:53: server misbehaving, logs: [u’Step 1/10 : FROM centos:7\n’]”}

how to make the installer build it from the local registry?
I’ve commented out the 2 lines in the inventory file and since the local registry not secured, I’ve uncommented only this line:
docker_registry=localhost:5000

this is the output of docker images:
[root@awxtest ~]# docker images

REPOSITORY TAG IMAGE ID CREATED SIZE

localhost:5000/memcached alpine fb0df03da449 8 days ago 8.96 MB

docker.io/registry latest 2e2f252f3c88 11 days ago 33.3 MB

localhost:5000/postgres 9.6 c0b5c11b5690 12 days ago 229 MB

localhost:5000/ansible/awx_task latest 67398bc01f40 5 weeks ago 1.03 GB

localhost:5000/ansible/awx_web latest 27936ec5a5de 5 weeks ago 997 MB

localhost:5000/ansible/awx_rabbitmq 3.7.4 e08fe791079e 5 months ago 85.6 MB

thanks