Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Installation instructions dont work for Amazon Linux 2 for docker ce #670

Closed
Khalian opened this issue Aug 23, 2020 · 2 comments
Closed

Comments

@Khalian
Copy link
Contributor

Khalian commented Aug 23, 2020

I created an EC2 instance with an Amazon Linux 2 AMI on a r5.metal instance since I dont have a box lying around with kvm and VT-x virt lying around.

I was looking at the instructions for installing the pre reqs here.

https://github.com/weaveworks/ignite/blob/master/docs/installation.md

Now there are no instructions for installing ignite on Amazon Linux (or RHEL for that matter) so I tried the centos one, since that is the closest.

On top of messing up the instructions with sudo, I ran

which containerd || ( yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && yum install -y containerd.io )

I got the error on the last command

[ec2-user@ip-172-31-10-187 ~]$ sudo yum install -y containerd.io
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
docker-ce-stable                                                                                      | 3.5 kB  00:00:00
(1/2): docker-ce-stable/x86_64/updateinfo                                                             |   55 B  00:00:00
(2/2): docker-ce-stable/x86_64/primary_db                                                             |  45 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.13-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.2.13-3.2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Now I could go and start hunting for how to install containerd in AL2, but I expect a company like weaveworks to have a more elaborate set of instructions for installation, including reliable reproducible ways to install even the pre reqs.

@Khalian
Copy link
Contributor Author

Khalian commented Aug 24, 2020

This should cover it : #671

@stealthybox
Copy link
Contributor

Sorry -- I missed this issue when reading your PR.
It looks like this require is failing:

Requires: container-selinux >= 2:2.74

Here's the fix, I'll update the PR suggestion
aws/containers-roadmap#614 (comment)

@Khalian Khalian closed this as completed Aug 27, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants