Install Docker & Docker Compose on Ubuntu Server (with Portainer + SSH) | Step-by-Step 2025

Опубликовано: 16 Март 2026
на канале: Installer Guru
847
30

https://erp.installerguru.in/solutions
Set up a production-ready Docker host on Ubuntu Server from scratch—perfect for beginners and homelab pros. In this step-by-step guide, we’ll:
Download and install Ubuntu Server (static IP + OpenSSH)
Connect via SSH using MobaXterm (why it’s handy vs PuTTY)
Install Docker Engine and Docker Compose
Deploy Portainer CE for an easy web UI to manage containers, volumes, networks, and stacks
Verify everything and run your first stacks with a docker-compose.yml

What you’ll learn

Static IP setup (subnet, gateway, DNS)
Why snap packages exist and when to skip them
Quick Docker install (Ubuntu repo) + enabling the service
Compose v2 vs legacy docker-compose

Portainer setup on ports 8000/9443
Using Stacks to deploy apps with a single YAML

Commands (copy–paste)
Update & upgrade
sudo apt update && sudo apt upgrade -y

Install Docker (Ubuntu repo) + enable
sudo apt install -y docker.io
sudo systemctl enable --now docker
docker --version

Let your user run docker without sudo
sudo usermod -aG docker $USER
newgrp docker

Docker Compose (v2 plugin)
sudo apt install -y docker-compose-plugin
docker compose version

Portainer (persistent volume + run)
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9443:9443 \
--name portainer --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:lts

Links:
Ubuntu server: https://ubuntu.com/download/server
MobaXterm: https://mobaxterm.mobatek.net/
Portainer: https://www.portainer.io/
Yutube videos:    • Unlock the Power of Docker: Easy Portainer...  

Need help with larger setups?

We design secure, scalable server & network deployments for clinics, hospitals, and businesses.
📧 [email protected]
| 🌐 https://www.installerguru.in

If this helped, like, share, and subscribe to Installer Guru—Installation made easy.
#installerguru #Docker #UbuntuServer #DockerCompose #Portainer #Linux #DevOps #SelfHosted #HomeLab #SysAdmin #HyperV #MobaXterm #SSH #ServerSetup #Containers #YAML #2025