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
  • Install Docker.
  • Verify that Docker is working correctly.
  • Start Docker and enable it to start automatically after a reboot.
Step by step guide
1# Step 1: Download and install docker
2curl -fsSL https://get.docker.com -o get-docker.sh
3sh get-docker.sh
4 
5# Step 2: Check if docker works
6docker ps
7 
8# Step 3: Remove the old installation file
9rm ~/get-docker.sh
10 
11# Step 4: Start docker and make it start automatically after reboot
12systemctl start docker
13systemctl enable docker
14 
15# Usage with docker compose:
16# Start an application
17cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml
18docker compose up -d
19 
20# Stop an application
21cd /srv/apps/nginx-proxy-manager # here could be you docker-compose.yml
22docker compose up -d
23 
24# Take insights in your logs
25docker compose logs -f
Next steps