Docker Installation in Ubuntu 22.02
Docker is a software platform for developing applications based on Containers (lightweight execution environments) that share the operating system kernel but in isolation. In Unix and Linux-based systems, Containers have been utilized for some time, however, when Docker was deployed in the market in 2013, it became easier for the developers to bundle their applications in such a way that it is created once and can be executed anywhere.
Resource i am used:
2 Core, 8 GB ram at VPS
Installation Step:
Update your ubuntu package first
sudo apt-get update
Install certificate for requirement docker installations
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Add GPG Docker keys into your system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add Docker repository into your APT, i m using amd64 cpu architecture btw
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
Reupdate your ubuntu package
sudo apt-get update
Finally, you can install docker into your system
sudo apt install docker-ce
Checking your docker status on your system
sudo systemctl status docker● docker.service - Docker Application Container EngineLoaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)Active: active (running) since Sun 2022-07-24 09:52:28 UTC; 20s agoDocs: https://docs.docker.comMain PID: 24185 (dockerd)Tasks: 8CGroup: /system.slice/docker.service└─24185 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Finally, Docker has been successfully installed on your system. Congrats
Install Docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
change permission your docker compose
sudo chmod +x /usr/local/bin/docker-compose
check version docker compose
docker-compose --version