Installing specific version of Docker

Tested on Ubuntu...

Maybe you like me, updated docker and fucked something up? :)

  1. check which versions are available with apt-cache madison docker-ce | awk '{ print $3 }'

  2. Copy the version name you want

  3. copy and paste

VERSION_STRING=5:26.1.4-1~ubuntu.20.04~focal
sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
  1. Done

Last updated