Debian - Install docker

By xngo on October 1, 2019

Install Docker

# Add dependent packages.
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
# Add Docker’s official GPG key.
curl -fsSL | apt-key add -
# Add Docker’s repository to apt-get.
add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
# Update list of packages of Docker’s repository.
apt-get update
# Install Docker.
apt-get install -y docker-ce docker-ce-cli

Test docker

docker run hello-world


Docker - Run hello-world - Output



About the author

Xuan Ngo is the founder of He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.