Skip to content

Instantly share code, notes, and snippets.

@zonca
Created March 27, 2018 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zonca/f5faba190f5285c68dad48e897622e90 to your computer and use it in GitHub Desktop.
Save zonca/f5faba190f5285c68dad48e897622e90 to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get update
apt-get install -y apt-transport-https
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/docker.list
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
EOF
apt-get update
apt-get install -y docker-ce
systemctl stop docker
modprobe overlay
echo '{"storage-driver": "overlay2"}' > /etc/docker/daemon.json
rm -rf /var/lib/docker/*
systemctl start docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment