For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to install Docker on Ubuntu

Docker lets you run applications in containers. Fast, portable, and efficient.


Requirements


Step 1: Remove old versions

sudo apt remove docker docker.io containerd runc -y

Step 2: Install dependencies

sudo apt update
sudo apt install ca-certificates curl gnupg -y

Step 3: Add Docker repo

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg

Step 4: Install Docker


Step 5: Start Docker


Step 6: Test


Step 7: Run without sudo


Basic commands

Run container:

List:


Done ๐Ÿณ

Docker is ready!

Last updated