Not able to install latest Docker engine in Amazon Linux 2 on EC2

0

Is it possible to install latest Docker engine in Amazon Linux 2 on EC2?

As per this doc, https://docs.docker.com/engine/release-notes/, Docker 24.0.2 is the latest version.

$ sudo amazon-linux-extras install docker

When executing this command, I get

$ docker --version
Docker version 20.10.23, build 7155243

https://docs.docker.com/engine/install/, this link doesn't have steps for Amazon Linux 2.

I couldn't find any article/blog from AWS on this. Does AWS deprecated Docker?

asked a year ago2647 views
1 Answer
0
Accepted Answer

Docker is not deprecated, however, the package for Docker is only available through extras. It is enabled by default. When new versions of Docker are released, support is provided only for the most current stable packages.

You can check what the latest supported version on AL2 is by running the following command from your instance:

yum --showduplicate list docker

At this time you can follow AL2 release notes for when a new Docker version is supported: https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-al2.html

There's no ETA on when version 24 or <latest versions> will make it downstream.

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions