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年前2832ビュー
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日前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ