Docker lets you run applications in isolated containers on your LumaDock VPS. If you prefer full control, you can install it manually instead of using a prebuilt template.
You can skip all manual steps by deploying the 1-click Docker VPS image during purchase or from the LumaDock control panel.
Requirements
Your VPS must run Ubuntu 22.04 LTS and you need SSH access as root or a sudo-enabled user.
Step 1 – Update your VPS
ssh root@YOUR_SERVER_IP apt update && apt upgrade -y
Step 2 – Install required dependencies
apt install -y apt-transport-https ca-certificates curl software-properties-common
Step 3 – Add the official Docker repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
| gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
> /etc/apt/sources.list.d/docker.list
apt update
Step 4 – Install Docker Engine
apt install -y docker-ce docker-ce-cli containerd.io
Step 5 – Verify that Docker works
docker --version docker run hello-world
Optional – Install Docker Compose
If you need multi-container applications, install Docker Compose.
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose \
chmod +x /usr/local/bin/docker-compose \
docker-compose --version
Your Docker environment is now ready. You can start pulling images, running containers, and building applications on your LumaDock VPS.
