In this quick tutorial, I’ll show you how to install Docker on Ubuntu 22.04. Docker is a powerful platform used to create, deploy, and manage lightweight containers.
Step 1: Update the System
First, update your package list:
Step 2: Install Required Packages
Install some necessary tools and certificates:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Step 3: Add Docker’s Official GPG Key
Step 4: Add Docker Repository
Step 5: Update Again
Update the package list to include Docker’s packages:
Step 6: Install Docker
Now install Docker Community Edition:
Step 7: Check Docker Status
Make sure Docker is running:
You should see something like “active (running)”.
(Optional) Step 8: Run Docker Without Sudo
To run Docker as a normal user (without using sudo
every time):
After this, log out and log back in to apply the group changes.