Docker

How to Install Docker on Ubuntu 24.04

Install Docker Engine and Docker Compose step by step

Learn how to install Docker Engine and Docker Compose on Ubuntu 24.04 correctly and securely.

Table of contents
  1. 1 Requirements
  2. 2 Installation
  3. 2.1 Update the system
  4. 2.2 Install Docker
  5. 3 Verify the installation
  6. 4 Troubleshooting

In this guide we install Docker Engine on Ubuntu 24.04 and verify that it works.

Requirements

  • An Ubuntu 24.04 server
  • A user with sudo access

Installation

Update the system

sudo apt update
sudo apt upgrade -y

Install Docker

sudo apt install -y docker.io docker-compose-v2
sudo systemctl enable --now docker
Warning

Make sure you take a backup before changing system settings.

Verify the installation

docker --version
docker compose version

Troubleshooting

If you get a permission error, add your user to the docker group and log in again.

Frequently asked questions

Does Docker work on Ubuntu 24.04?

Yes, Docker works fully on Ubuntu 24.04.

Do I need a separate Docker Compose install?

No, docker compose v2 ships as a plugin with modern installs.

Was this tutorial helpful?

86% found this helpful.

Comments 0

No comments yet. Be the first to comment.

Leave a comment

Your email is never published.

Related tutorials