Skip to content

Instantly share code, notes, and snippets.

@yuhr123
Created October 19, 2017 07:18
Show Gist options
  • Save yuhr123/050266e08e970bf1cc8122fe6ce50b6c to your computer and use it in GitHub Desktop.
Save yuhr123/050266e08e970bf1cc8122fe6ce50b6c to your computer and use it in GitHub Desktop.
Install Docker CE on Debian Strach x86_64
#!/bin/bash
# install dependency packages
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# add gpg key
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
# add docker repo
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
# install docker
sudo apt-get update && sudo apt-get install docker-ce -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment