This script helps you install the latest version of Docker and Docker Compose in Ubuntu.
You need to have an Ubuntu/Debian-based machine.
Your instance should have the updated version of 'git' installed. You can check if you have git installed or not by running the command
git versionand looking at the output.If you do not have git installed, you can use the command
sudo apt install gitto install the latest version of git in your system.
Open Putty or any ssh tool that you use to connect to your instance. Clone this repository to any directory.
git clone https://github.com/Jayavel-S/Docker-Setup and cd into the parent directory cd Docker-Setup
The script to install the latest version of docker and docker-compose is named as install.sh. Run the script with elevated privileges.
sudo sh install.sh
This will pull the latest version of docker according to the platform you are using (x86/x64/ARM) and install the docker-compose relevant to that binary using python.
Reboot the system and check if the installation was successful.
sudo reboot now, and once the machine is back up, run docker version or docker-compose version.
The system has successfully processed the docker installation if it returns the respective version values.
