For Ubuntu 24.04, the clean way is to install Docker Engine + Docker Compose plugin from Docker’s official repository. On Ubuntu, Compose v2 is installed as the package docker-compose-plugin, and you run it as docker compose with a space, not docker-compose Use these steps: 1) Remove old/conflicting packages if they exist for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove -y $pkg done 2) Update apt and install prerequisites sudo apt-get update sudo apt-get install -y ca-certificates curl gnupg 3) Add Docker’s official GPG key sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg 4) Add Docker repository echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \ https://download.docker.com/linux/ubuntu...
This blog provides a structured written companion to the YouTube tutorial, including the key commands, procedures, and step-by-step instructions demonstrated in the video. Its purpose is to offer a clear reference that readers can follow while performing the installation, configuration, or troubleshooting process on their own systems. Channel : https://www.youtube.com/@terabyteyt