1

I'm trying to install Docker on a "Hat Enterprise Linux Server release 7.2 (Maipo)" according to these instructions but sudo yum install docker-engine fails with:

https://yum.dockerproject.org/repo/main/centos/7Server/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden

Trying that url on the browser (from my local machine, which supposedly doesn't have access restrictions) actually fails in the same way. I've also noticed that if I replace the version "7Server" by "7" in the url I do get access from the browser.

What is going on there? Why is docker "7Server" inaccessible? Why does yum pick that version? Can I have it pick "7" instead? Or how can I install Docker on that RedHad distribution otherwise?


Note: On similar SE questions, people suggest disabling SELinux or disabling a proxy setting but I believe the fact I also get 403 from the browser as described rules these off (I also can't find any proxy setting on my /etc/yum.conf or /etc/yum.repos.d/*/hdp.conf).

1

Actually your /etc/yum.repos.d/docker.repo file should look like this

[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg

It should solve your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.