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
1
# Step 1: Download and install docker2
curl -fsSL https://get.docker.com -o get-docker.sh3
sh get-docker.sh4
5
# Step 2: Check if docker works6
docker ps7
8
# Step 3: Remove the old installation file9
rm ~/get-docker.sh10
11
# Step 4: Start docker and make it start automatically after reboot12
systemctl start docker13
systemctl enable docker14
15
# Usage with docker compose: 16
# Start an application17
cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml18
docker compose up -d19
20
# Stop an application21
cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml22
docker compose up -d23
24
# Take insights in your logs25
docker compose logs -f