This should re-install the docker-ce 20.10.23:
sudo apt install --allow-downgrades -y docker-ce=$(apt-cache madison docker-ce | awk '/20.10.23/{print $3}')
Then mark the package so it’s held back when upgrading packages:
sudo apt-mark hold docker-ce