Skip to content

Instantly share code, notes, and snippets.

@narwanimonish
Last active January 9, 2020 09:04
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 narwanimonish/47178578d8e0ec4002bbe8e6c40ecc54 to your computer and use it in GitHub Desktop.
Save narwanimonish/47178578d8e0ec4002bbe8e6c40ecc54 to your computer and use it in GitHub Desktop.
Install docker on Ubuntu 16.04 or Ubuntu 18.04
#!/bin/bash
sudo apt-get update -y
sudo apt-get remove docker docker-engine docker.io -y
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment