Skip to content

Instantly share code, notes, and snippets.

@juyal-ahmed
Forked from shudarshon/install_docker.sh
Created January 8, 2018 10:50
Show Gist options
  • Save juyal-ahmed/fadd13d9b1cc5a42f38112911c43b4d6 to your computer and use it in GitHub Desktop.
Save juyal-ahmed/fadd13d9b1cc5a42f38112911c43b4d6 to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
apt-get update
apt-get install -y docker-engine
systemctl enable docker
usermod -aG docker ubuntu
curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)"
chmod +x /usr/local/bin/docker-compose
docker-compose -v
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment