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?

질문됨 일 년 전2831회 조회
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
답변함 일 년 전
profile picture
전문가
검토됨 16일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인