How to install Docker on Amazon linux 2023?
Asked Answered
F

2

24

I am trying to install docker engine on amazon linux 2023 using the docker ce repo with no luck.

i tried to install Docker on amazon linux 2 using the "amazon-linux-extras" but its no longer available on AL2023 even though it was on AL2.

Faxan answered 7/5, 2023 at 12:58 Comment(1)
what is the big-picture goal you are trying to achieve by this?Kelter
H
32

Dsh.

Simple

yum install -y docker

worked fine for me. I'm using al2023-ami-2023.0.20230503.0-kernel-6.1-x86_64

Hyades answered 9/5, 2023 at 7:1 Comment(0)
F
5

Amazon Linux 2023 uses Fedora as the upstream. So as others suggested yum install -y docker can be used.

But also dnf install -y docker since dnf is the next-generation yum and running yum actually runs dnf in the background

Faxan answered 9/5, 2023 at 7:56 Comment(1)
This is not an answer. Try commenting on the answer you accepted.Advisement

© 2022 - 2024 — McMap. All rights reserved.