Applies to: LifeinCloud Cloud VPS • Ubuntu 22.04 LTS
Overview
Docker allows you to run applications inside lightweight, portable containers. While LifeinCloud offers a 1-click Docker image for instant setup, you can also install Docker manually for more control. This guide covers the manual installation process.
Requirements
- LifeinCloud VPS with Ubuntu 22.04 LTS.
- Root SSH access.
Step 1 — Update Your VPS
ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
Step 2 — Install Dependencies
apt install -y apt-transport-https ca-certificates curl software-properties-common
Step 3 — Add Docker’s Official 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 Installation
docker --version
docker run hello-world
Optional — 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
Tip: You can skip all manual steps by deploying our 1-click Docker VPS image from the LifeinCloud control panel.