How did I install Docker to Debian 10 (Buster)?

I used the official manual as a base: docs.docker.com/engine/installation/linux/docker-ce/debian

Step 1

aptitude install apt-transport-https
aptitude install ca-certificates
aptitude install curl
aptitude install gnupg-agent
aptitude install software-properties-commo

Step 2

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

Step 3

add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"

Step 4

aptitude update && aptitude install docker-ce

Step 5 (verification)

docker run hello-world

See also: How did I install Docker to Debian 9 (Stretch)?

How did I upgrade Docker Client from 19 to 24 on Debian 10?