# 🐳 How to Install and Use Docker on Ubuntu 22.04 ![Docker](https://img.shields.io/badge/Docker-2496ED?style=for-the-badge&logo=docker&logoColor=white) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) ![Status](https://img.shields.io/badge/Status-Stable-success) A step-by-step guide to installing Docker Community Edition (CE) on Ubuntu 22.04, based on the [DigitalOcean Tutorial](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04). --- ## 📋 Table of Contents - [Prerequisites](#-prerequisites) - [Installation Guide](#-installation-guide) - [Step 1: Update Packages](#1-update-packages) - [Step 2: Install Dependencies](#2-install-dependencies) - [Step 3: Add Docker Repository](#3-add-docker-repository) - [Step 4: Install Docker Engine](#4-install-docker-engine) - [Post-Installation Configuration](#-post-installation-configuration) - [Verification](#-verification) --- ## 🛠 Prerequisites Before you begin, ensure you have: * One **Ubuntu 22.04** server. * A user with `sudo` privileges. * An active firewall (optional but recommended). --- ## 🚀 Installation Guide ### 1. Update Packages First, update your existing list of packages to ensure you are getting the latest versions. ```bash sudo apt update