My Installer fails with the error message below . The message in itself is clear that the server can’t reach out to docker hub. Our environment has it’s own docker registry and we block access to Internet from the corporate network.
What parameters/variables can I modify in the playbook, so that the playbook uses the local docker registry instead of the public one ? I have already setup authentication from the client to registry and placed my image files in our
local repository… Please help.
TASK [local_docker : Start the containers] *******************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “errors”: , “module_stderr”: “”, “module_stdout”: “Pulling repository docker.io/library/memcached\n”, “msg”: “Error starting project Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/memcached/images. You may want to check your internet connection or if you are behind a proxy.”}
The playbook role related to the task above is image_build .
{ role: image_build, when: “dockerhub_base is not defined” }
The log indicates it is downloading the memcached image. It does need to get that from dockerhub. Only the awx images are built locally. If you import the memcached image into your docker registry, try a recursive grep through the awx install tree to find the tasks that download it. You may find a variable or you may have to modify the task.
Make sure you don’t have the variable dockerhub_base defined in your inventory.
Thanks . I tried changing the docker registry variable to the ip addr/hostname of our internal docker registry, but it still fails with the same error .
Thanks David. If I don’t define dockerhub_base=ansible which is the default value from the git project, The playbook fails even before local_docker role gets executed .
fatal: [localhost → localhost]: FAILED! => {“changed”: false, “msg”: “Error building awx_sdist_builder - code: None, message: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/centos/images. You may want to check your internet connection or if you are behind a proxy., logs: [u’Step 1 : FROM centos:7\n’]”}
Just changing the base var in inventory isn’t going to help… we don’t have any parameter that will change the location of dependent images. You’d need to change those in the playbook by hand, there are a few in the template file, look for the image lines… here’s the one for memcached