Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active Apr 28, 2020
Embed
What would you like to do?
Install docker on debian 9
apt-get update -y
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
apt-get update -y
apt-get install -y docker-ce docker-ce-cli containerd.io
# install compose
curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# bash <(curl -s https://gist.githubusercontent.com/makevoid/a5e728c28bec85d04d67c6e3f55ebc09/raw/7a172b4e86a0b57a3811e892d1dfc737aaec43b1/install-docker.sh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment