Docker Community Forums

Share and learn in the Docker community.

Cannot install Docker on Amazon Linux

aws
amazonwebservices

(Mwelke) #1

I’m using the latest version of the Amazon Linux AMI. I followed the RHEL install instructions because Amazon Linux is based on RHEL. When I run:

sudo yum-config-manager
–add-repo
https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo

I get the following message:

Loaded plugins: priorities, update-motd, upgrade-helper
adding repo from: https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
grabbing file https ://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to /etc/yum.repos.d/docker.repo
https ://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
Trying other mirror.
Could not fetch/save url https ://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to file /etc/yum.repos.d/docker.repo: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 416 Requested Range Not Satisfiable”

Is there something wrong with the install instructions for Amazon Linux or was I not following the correct instructions?


(Josh Habdas) #2

You’re not alone. Also occurs while trying to instal from repo using CentOS 6.9 (Final) using the Vultr 1-click WordPress install box. I opened an issue here: https://github.com/moby/moby/issues/32757.


(Mayank2711) #3

Getting similar error on AWS. Any resolution?

Could not fetch/save url https://storebits.docker.com/ee/trial/<>/docker-ee.repo to file /etc/yum.repos.d/docker-ee.repo: [Errno 14] HTTPS Error 404 - Not Found


(Mariner) #4

You should find your repo URL from My Content section like this. For this you should have active subscription trial.