Skip to content

Instantly share code, notes, and snippets.

@vpalmisano
Created September 19, 2018 14:52
Show Gist options
  • Save vpalmisano/3ca73f931c71d18705309e27843c352b to your computer and use it in GitHub Desktop.
Save vpalmisano/3ca73f931c71d18705309e27843c352b to your computer and use it in GitHub Desktop.
apt-get update && apt-get install -y curl apt-transport-https curl software-properties-common nfs-common ntp
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/docker.list
deb https://download.docker.com/linux/$(lsb_release -si | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable
EOF
apt-get update && apt-get install -y --force-yes docker-ce=$(apt-cache madison docker-ce | grep 17.03 | head -1 | awk '{print $3}')
apt-mark hold docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment