Step 1
Check the installed version:
docker version
Step 2
apt-get update
docs.docker.com/engine/install/debian/#install-using-the-repository
Step 3
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docs.docker.com/engine/install/debian/#install-using-the-repository
Step 3
Check the installed version:
docker version