For those that didn’t have this solution work (I tried this over the weekend, didn’t have any luck), the other potential solution is:
sudo apt install docker-ce=5:27.5.1-1~ubuntu.22.04~jammy \
docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy \
docker-compose-plugin=2.32.4-1~ubuntu.22.04~jammy \
docker-buildx-plugin=0.20.0-1~ubuntu.22.04~jammy \
docker-ce-rootless-extras=5:27.5.1-1~ubuntu.22.04~jammy
Some are saying that you only need to downgrade the following:
sudo apt install docker-ce=5:27.5.1-1~ubuntu.22.04~jammy \
docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy
and then mark them, so you don’t upgrade them:
sudo apt-mark hold docker-ce=5:27.5.1-1~ubuntu.22.04~jammy
sudo apt-mark hold docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy