Installing Docker
How to install Docker and the Compose plugin on your VPS.
Debian/Ubuntu
The commands below are for Debian/Ubuntu based distros. If you're running a different distro, see our guide on picking a distro, or refer to Docker's official install docs for your distro.
Run the official install script
Docker provides a convenience script that installs the latest stable release:
curl -fsSL https://get.docker.com | shAdd your user to the docker group (optional)
By default only root can run Docker commands. To run Docker as your regular user, add them to the docker group:
sudo usermod -aG docker $USERLog out and back in for this to take effect.
Verify the install
docker --version
docker compose versionBoth should print a version number, docker compose (the plugin, no hyphen) is included automatically by the install script.