Install docker
Description
In this guide, you will learn how to install Docker on your VPS using Docker’s official installation script. Docker is used to run and administrate all types of several services, like a Git repository hosting, a personal VPN or even a Palworld server with ease.
We are using the Linux operating system Ubuntu 24.04.
What you’ll learn
Step by step guide
Bash
# Step 1: Download and install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# Step 2: Check if docker works
docker ps
# Step 3: Remove the old installation file
rm ~/get-docker.sh
# Step 4: Start docker and make it start automatically after reboot
systemctl start docker
systemctl enable docker
# Usage with docker compose:
# Start an application
cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml
docker compose up -d
# Stop an application
cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml
docker compose up -d
# Take insights in your logs
docker compose logs -f