Skip to content

Instantly share code, notes, and snippets.

@ivan-c
Last active April 23, 2019 20:43
Show Gist options
  • Save ivan-c/62008abbd20f2b08aaafe8ecddf62c79 to your computer and use it in GitHub Desktop.
Save ivan-c/62008abbd20f2b08aaafe8ecddf62c79 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -euxo pipefail
# docker install script for debian
# https://docs.docker.com/engine/installation/linux/docker-ce/debian/
apt-get update
apt-get install --yes --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl --fail --silent --show-error --location "https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg" | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install --yes --no-install-recommends docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment