Centos 7 install a specific version of docker ce

0 votes

I'm trying to install a specific version of Docker CE, 20.10.5, and to do so, I use this command to display the available versions:

yum list docker-ce-cli --showduplicates | sort -r

Output

docker-ce-cli.x86_64              1:20.10.6-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:20.10.5-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:20.10.4-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:20.10.3-3.el7               docker-ce-stable

I specify the version using

sudo yum install docker-ce-20.10.5-3.el7

Afterwards, running --version still gives me this output

Docker version 20.10.6, build 370c289

What's the proper way to go around this?

Apr 29, 2022 in Docker by Abhijeet
• 180 points

edited 4 days ago 4 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP