For time being, the installation can be done like this on Ubuntu and Debian (execute as root):
source /etc/os-release
apt install docker-ce docker-ce-cli containerd.io=2.2.0-2~${ID}.${VERSION_ID}~${VERSION_CODENAME} docker-buildx-plugin docker-compose-plugin