HostSlim

How do I install Docker on my VPS or server?

Docker works on KVM VPS servers and dedicated servers. Below are the steps for Ubuntu and Debian. curl -fsSL https://get.docker.com -o get-docker.sh sudo…

  • VPS

Docker works on KVM VPS servers and dedicated servers. Below are the steps for Ubuntu and Debian.

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo systemctl enable --now docker
docker run hello-world

To use Docker without sudo, add your user to the docker group: sudo usermod -aG docker $USER and log in again.

Security tip: Docker can bypass ufw firewall rules for published ports. Only publish the ports you really need, or bind them to 127.0.0.1 when they are used by a local reverse proxy.

More from the knowledge base

Need something that is not on the list?

Custom builds, private VLANs, BGP sessions, multi-rack deployments. Tell us what you are running and an engineer replies, usually within the hour.