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?

feita há um ano2838 visualizações
1 Resposta
1
Resposta aceita

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
respondido há um ano
profile picture
ESPECIALISTA
avaliado há 16 dias

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas