Skip to content

Instantly share code, notes, and snippets.

@rvigneshw
Last active October 30, 2020 10:11
Show Gist options
  • Save rvigneshw/743c2495f698d9f6e311073cad309e25 to your computer and use it in GitHub Desktop.
Save rvigneshw/743c2495f698d9f6e311073cad309e25 to your computer and use it in GitHub Desktop.
Single Script install of Docker on Ubuntu 20.04
echo "Removing Docker IF EXISTS"
sudo apt-get remove docker docker-engine docker.io containerd runc
echo "Getting Docker install Script"
curl -fsSL https://get.docker.com -o get-docker.sh
echo "Executing Docker install Script"
sudo sh get-docker.sh
echo "Getting Docker-compose"
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@rvigneshw
Copy link
Author

Usage:

wget -O -https://gist.githubusercontent.com/rvigneshw/743c2495f698d9f6e311073cad309e25/raw/087e9f056f20b5f677bc9f16551a45430a5f8d47/docker-on-ubuntu.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment