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).


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

name=Docker Repository

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.