Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to install docker on Debian 10

# From docker.com repositories in Debiam as root
# Prereqs
apt update
apt install ca-certificates curl gnupg lsb-release
# Add cert
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Add repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian 
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install docker
apt update
apt install docker-ce docker-ce-cli containerd.io
# Note: apt upgrade will upgrade to highest version if multiple repositories exist with different version.
Source by phoenixnap.com #
 
PREVIOUS NEXT
Tagged: #install #docker #Debian
ADD COMMENT
Topic
Name
9+5 =