sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2 sudo
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
On success, the command will return OK. If it fails, enter the following.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable"
$(lsb_release -cs) will return the name of the Debian release. In this case, that's buster.
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker