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?

已提問 1 年前檢視次數 2837 次
1 個回答
1
已接受的答案

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
已回答 1 年前
profile picture
專家
已審閱 16 天前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南