Issue
i have a little problem. I am using Windows in the company and have to install docker. That's why i have installed Oracle Virtual Box and CentOS 7. Now i need to install Docker. I am reading the following instructions from this site: https://www.kinamo.be/en/support/faq/installing-docker-engine-on-centos-7
But i have the first problem at step 1 and this command: $ sudo yum update
I get this error message immediately:
Of course i googled a bit, and i found that i should add a DNS, and i tried it with "sudo sh -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"". I entered it, but nothing happened. With "sudo yum update" i always get the same error. I have also tried "dhclient" before, but it seems, that nothing happened
Thank you in advance!
Solution
If there is a proxy, follow the steps described in this link https://docs.docker.com/engine/admin/systemd/#httphttps-proxy
You might also need to export the environment variables http_proxy
and https_proxy
For the DNS configuration also consider adding the follow in /etc/systemd/system/docker.service.d/dns.conf:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd daemon -H fd:// --dns 8.8.8.8 --dns x.x.x.x --dns x.x.x.x
https://github.com/moby/moby/issues/19481#issuecomment-173469374
Answered By - yamenk Answer Checked By - Willingham (WPSolving Volunteer)