Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1020 Bytes

docker_installation.md

File metadata and controls

37 lines (29 loc) · 1020 Bytes

#Step 1: Update system repositories

   sudo apt update

#Step 2: Install required dependencies

   sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y

#Step 3: Adding Docker repository to system sources

   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) 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

#Step 4: Update system packages

   sudo apt update

#Step 5: Install Docker on Ubuntu 22.04

sudo apt install docker-ce -y

#Step 6: Verify Docker status

sudo systemctl status docker

#Step 6: Add user to docker group

 sudo usermod -aG docker $USER