Skip to content

Install Docker on Ubuntu 24.04 – Compose, Permissions, Firewall

Docker Engine + Compose on Ubuntu 24.04 VPS: official repo, docker group, UFW, don’t run root Compose in prod blindly.

Root & VPS

Quick answer: Official Docker repo on the VPS, test docker compose version, think about socket rights, don’t publish raw ports to the internet.

VPS & root servers: Order VPS in Germany · NexoraHost · nexorahost.com (Maincubes FRA01 Frankfurt · Ryzen · NVMe · GDPR)

Frequently asked questions (FAQ)

Ubuntu repos or docker.com?
For a current engine: official Docker repo. Distro packages lag.
compose vs docker-compose?
2026: docker compose v2 plugin. Hyphen binary is legacy.
Add user to docker group?
Convenient, but docker.sock is root-equivalent. Prefer rootless or a deploy user.
UFW and Docker?
Docker often bypasses UFW via iptables. Bind to 127.0.0.1 and put a proxy in front.

Keep reading

Popular and fresh – not just the oldest guides.

More

Explore NexoraHost