Quote from
spconlin on June 6, 2020, 4:02 pm
While attempting to do a clean install on my Antsle One D, I kept getting a failure for docker during the install after logging in as root.
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["yum-config-manager", "--add-repo", "https://download.docker.com/linux/centos/docker-ce.repo"], "delta": "0:00:00.502301", "end": "2020-06-06 12:18:41.557234", "msg": "non-zero return code", "rc": 1, "start": "2020-06-06 12:18:41.054933", "stderr": "", "stderr_lines": [], "stdout": "Loaded plugins: fastestmirror\nadding repo from: ping \ngrabbing file yum/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo\nCould not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#6 - \"Could not resolve host: download.docker.com; Unknown error\"", "stdout_lines": ["Loaded plugins: fastestmirror", "adding repo from: https://download.docker.com/linux/centos/docker-ce.repo", "grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo", "Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#6 - \"Could not resolve host: download.docker.com; Unknown error\""]}
I was finally able to resolve this by not rebooting after the failure and then modifying the yum config.
- Enter "nano /etc/yum.conf"
- Add the line "ip_resolve=4"
- Save and exit the file
- Reboot the machine
While attempting to do a clean install on my Antsle One D, I kept getting a failure for docker during the install after logging in as root.
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["yum-config-manager", "--add-repo", "https://download.docker.com/linux/centos/docker-ce.repo"], "delta": "0:00:00.502301", "end": "2020-06-06 12:18:41.557234", "msg": "non-zero return code", "rc": 1, "start": "2020-06-06 12:18:41.054933", "stderr": "", "stderr_lines": [], "stdout": "Loaded plugins: fastestmirror\nadding repo from: ping \ngrabbing file yum/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo\nCould not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#6 - \"Could not resolve host: download.docker.com; Unknown error\"", "stdout_lines": ["Loaded plugins: fastestmirror", "adding repo from: https://download.docker.com/linux/centos/docker-ce.repo", "grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo", "Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] curl#6 - \"Could not resolve host: download.docker.com; Unknown error\""]}
I was finally able to resolve this by not rebooting after the failure and then modifying the yum config.
- Enter "nano /etc/yum.conf"
- Add the line "ip_resolve=4"
- Save and exit the file
- Reboot the machine
lancem has reacted to this post.