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?