All Guides
Docker Setup and Usage
Install Docker container platform. Basic commands and Docker Compose usage.
Intermediate25 min
Setup Steps
1. Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg2. Add Docker repository:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list3. Install Docker:
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y4. Add your user to the docker group:
sudo usermod -aG docker $USER
newgrp docker5. Test:
docker run hello-world6. Basic commands:
docker ps # Running containers
docker images # Installed images
docker pull nginx # Pull image
docker stop container # Stop7. Docker Compose example (docker-compose.yml):
version: '3.8'
services:
web:
image: nginx:alpine
ports:
- "80:80"
db:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: password1238. Compose commands:
docker compose up -d
docker compose down
docker compose logsRelated Guides
Linux VPS Server Setup (Ubuntu)
Configure your Ubuntu-based VPS server from scratch. Security, user management and basic settings.
Apache Web Server Setup
Install Apache HTTP server and configure virtual hosts.
Nginx Web Server Setup
Install Nginx web server and configure it as a reverse proxy.
Let's Encrypt SSL Certificate Setup
Get a free SSL/TLS certificate with Certbot and enable HTTPS.