Install prerequisite packages.
apt-get install apt-transport-https ca-certificates \
curl gnupg2 software-properties-common
Add the docker GPG key.
curl -fsSL https://download.docker.com/linux/debian/gpg \
| apt-key add -
apt-key fingerprint 0EBFCD88
Add the repository.
echo "#" > /etc/apt/sources.list.d/docker.list
echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/docker.list
Update the package list and install Docker.
apt-get update
apt-get install docker-ce
Add your user to the docker group.
usermod -a -G docker joe
No questions yet.