In this Article we are going to install docker-ce on Ubuntu 20 but before installation we should know about :
What is Docker ?
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined
what is docker-compose ?
1- Setup Repository
sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release
2- Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
3- Add Docker’s official Repository :
echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
4- Installing Docker
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io
Installing Docker from Bash script
wget -qO- https://raw.githubusercontent.com/farshadnick/docker-installation-script/main/docker-install.sh | sh
Installing Docker-compose from Bash script
wget -qO- https://raw.githubusercontent.com/farshadnick/docker-installation-script/main/docker-compose-install.sh | sh