Guide
Docker one-command install script (beta)
Last updated: 1 December 2026
This free script installs Docker Engine and Docker Compose from Docker's official apt repository. It is new (beta): use it on a fresh server and read it first.
Instant VPS from $7.99 a month
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
See Instant VPS plansHow ordering worksRequirements and run
Ubuntu 22.04/24.04 or Debian 12/13 with root access, at any provider. Download, compare the SHA-256 (35847de6d5e7154ac80b7bb28e934c5d794fb6404f9509a853f537f701aa1681), read it, then run:
wget https://phantomvps.com/blog/docker.sh
sha256sum docker.sh
less docker.sh
sudo bash docker.sh
What it changes
- Adds Docker's signing key and apt repository
- Installs docker-ce, the CLI, containerd, Buildx and the Compose plugin
- Starts Docker and enables it at boot
- Stops without changes if Docker is already installed
Good to know
- Ports published by containers are not filtered by ufw; bind to 127.0.0.1 unless a port must be public
- Run containers as a non-root user where you can
- Adding a user to the docker group gives that user root-level power
Questions and answers
Does it replace an existing Docker?
No. If a docker command exists, it stops and changes nothing.
Where do the packages come from?
From download.docker.com, Docker's own repository.
Is it tested?
It is a beta. Please report problems to support@phantomvps.com.
Does it work on other providers?
Yes, on any server with a supported system and root access.
Ready to try it? Instant VPS from $7.99 a month
- Pick a plan: Instant 1-2, $7.99 a month or all Instant VPS plans.
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
- Before you pay you can ping our test IPs and read the live status page.
- Support is available 24/7 via email and our client ticket portal.
See Instant VPS plansHow ordering works