Install from Docker's APT repository
For a long-running server, use Docker's signed APT repository instead of piping a downloaded script into a root shell. Compare each step with the current official Debian guide.
sudo apt update
sudo apt install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.ascCreate the documented docker.sources file for your release and architecture, update APT, then install the maintained packages:
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginVerify with sudo docker run hello-world. Account for Docker's firewall behavior before exposing container ports.
Was this post helpful?
MagicHosting – Hosting with real value
Hosting pays off with MagicHosting: fair pricing, current deals and operation in SkyLink RZ. Servers, domains and personal support – no hidden costs.
- Current limited offers from our server exchange
- Affordable domains with transparent pricing and great offers
- Powerful DDoS protection for maximum availability
- Personal support when you have questions or issues