Skip to main content

Installing Docker on Ubuntu 22.04

Overview

This is a simple step-by-step guide to install Docker on a Debian system.

Prerequisites

  • A Debian server
  • Sudo privileges
  • An internet connection

Installation Steps

  1. Update and upgrade packages and install curl:
apt update && apt upgrade -y && apt install curl -y
  1. Download and execute the Docker installation script using curl:
curl -sSL https://get.docker.com | CHANNEL=stable bash
  1. Verify your installation. If done correctly, you will see something similar to:
~ docker --version
> Docker version 24.0.2, build cb74dfc
~ docker compose version
> Docker Compose version v2.18.1

That's it, Docker is now installed :)