How do I install Docker on my VPS or server? Print

  • 0

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.


Was this answer helpful?

« Back