2026-04-05 11:31:39 +00:00
2026-04-05 09:12:30 +00:00
2026-04-05 11:31:39 +00:00

Docker Installation Script

This script installs Docker and Docker Compose on a Debian/Ubuntu-based system.

What this script does

The script performs the following steps:

  1. Updates and upgrades the system packages
  2. Installs required dependencies
  3. Adds Dockers official GPG key
  4. Adds the Docker repository
  5. Installs Docker Engine (docker-ce, cli, containerd)
  6. Starts and enables the Docker service
  7. Installs the latest version of Docker Compose
  8. Makes Docker Compose executable
  9. Adds the current user to the docker group

Requirements

  • Debian or Ubuntu-based system
  • sudo privileges
  • Internet connection
  • jq (used to fetch latest Docker Compose version)

If jq is not installed, install it first:

sudo apt install -y jq
S
Description
Install docker on Ubuntu 24.04
Readme
25 KiB
Languages
Shell 100%