Source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10
Install debian as root user
# update repos apt update # install basic dependencies apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common # install docker gpg trusted key curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - # add docker repository to apt lists add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" # update repos again apt update # make sure docker is going to be installed using download.docker.com sources (official) apt-cache policy docker-ce # install docker apt install docker-ce # check it is installed systemctl status docker # done!