Skip to content

Instantly share code, notes, and snippets.

@leonj1
Created June 20, 2018 23:02
Show Gist options
  • Save leonj1/e3d66ba271b0d2512d0f4699d1742587 to your computer and use it in GitHub Desktop.
Save leonj1/e3d66ba271b0d2512d0f4699d1742587 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This is NOT for Raspberry Pi.
# For RasPi try a diff script in my gists
apt-get -y remove docker docker-engine docker.io
apt-get update
apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment