Blame
| 5a5bee | Freedom | 2026-01-29 17:50:30 | 1 | # Ubuntu setup |
| 2 | ||||
| 3 | ````markdown |
|||
| 4 | ## Update the host |
|||
| 5 | ||||
| 6 | ```bash |
|||
| 7 | sudo apt-get update |
|||
| 8 | sudo apt-get upgrade |
|||
| 9 | ```` |
|||
| 10 | ||||
| 11 | ## Install Docker Engine + Compose |
|||
| 12 | ||||
| 13 | ```bash |
|||
| 14 | # Add Docker's official GPG key |
|||
| 15 | sudo apt update |
|||
| 16 | sudo apt install ca-certificates curl |
|||
| 17 | sudo install -m 0755 -d /etc/apt/keyrings |
|||
| 18 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
|||
| 19 | sudo chmod a+r /etc/apt/keyrings/docker.asc |
|||
| 20 | ||||
| 21 | # Add the repository to Apt sources |
|||
| 22 | sudo tee /etc/apt/sources.list.d/docker.sources <<'EOF' |
|||
| 23 | Types: deb |
|||
| 24 | URIs: https://download.docker.com/linux/ubuntu |
|||
| 25 | Suites: $(. /etc/os-release && echo "$UBUNTU_CODENAME:$VERSION_CODENAME") |
|||
| 26 | Components: stable |
|||
| 27 | Signed-By: /etc/apt/keyrings/docker.asc |
|||
| 28 | EOF |
|||
| 29 | ||||
| 30 | sudo apt update |
|||
| 31 | sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
|||
| 32 | ``` |
|||
| 33 | ||||
| 34 | ## Allow your user to run Docker |
|||
| 35 | ||||
| 36 | ```bash |
|||
| 37 | sudo usermod -aG docker $USER |
|||
| 38 | ``` |
|||
| 39 | ||||
| 40 | > [!IMPORTANT] |
|||
| 41 | > Log out and back in (or restart) for the group change to apply. |
