The Overhead of Docker CLI Administration
Docker is the standard containerization engine for modern cloud infrastructure. However, as your server stack grows to include 15+ containers (Nginx, databases, caching layers, analytics, self-hosted services), managing everything via SSH terminal commands—running docker ps, docker logs -f, docker exec -it, and pruning unused volumes—becomes mentally taxing.
Portainer Community Edition (CE) is the industry's leading open-source graphical management dashboard for Docker and Docker Swarm environments. It provides an intuitive visual cockpit to inspect container logs, deploy multi-container Compose stacks, monitor real-time resource consumption, and manage persistent volumes without ever typing a single terminal command.
Prerequisites on Hostinger or Contabo VPS
Portainer is featherlight, consuming less than 50MB of RAM. You can install it on any standard Linux VPS running Ubuntu 22.04 or 24.04 LTS (such as a Hostinger KVM 2 or Contabo Cloud VPS 1).
Step 1: Install Docker Engine & Compose
SSH into your VPS as root and install Docker:
ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
apt install -y curl ufw
# Install Docker via official convenience script
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker
Step 2: Create Portainer Persistent Data Volume
Portainer stores its internal SQLite database, user accounts, and encryption keys in a Docker volume. Create it with:
docker volume create portainer_data
Step 3: Deploy Portainer Container
Launch the official Portainer CE container, binding port 9443 for HTTPS management and mounting the host Docker socket:
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:latest
Verify that the container is healthy and listening:
docker ps
Critical 5-Minute Setup Window
Portainer includes an automatic security lockdown feature: if an administrator account is not created within 5 minutes of container initialization, Portainer automatically shuts down its onboarding port to prevent remote hijacking. If this happens, simply run docker restart portainer to restart the countdown.
Step 4: Initial Admin Setup & Environment Linking
Open your browser and navigate to https://YOUR_SERVER_IP:9443 (accept the self-signed SSL warning). You will see the initial onboarding interface:
Create an administrator username and a strong 18+ character password.
Select Get Started with the local environment. Portainer will automatically detect your host Docker socket (
/var/run/docker.sock).Click into your local Docker environment to view the full management overview.
Top Portainer Features Every Sysadmin Should Use
Web Console Access: Click the
>_ Consoleicon on any container to spawn an instant interactive root shell inside the container without using SSH.Live Container Logs: Stream real-time logs with search filtering and line-wrapping to debug runtime application crashes.
App Templates: Launch pre-configured open-source templates (Nginx, WordPress, MySQL, Redis) with a single click.
Git Stacks Deployment: Paste a link to your private GitHub repository containing a
docker-compose.ymlfile. Portainer can poll for Git commits and automatically redeploy updated application stacks.One-Click Image & Volume Prune: Under Images and Volumes, click Clean Up Unused to reclaim gigabytes of disk space instantly.
Step 5: Putting Portainer Behind Nginx with a Trusted Domain
If you prefer accessing Portainer via a clean URL like portainer.yourdomain.com without port numbers or certificate warnings, configure an Nginx reverse proxy pointing to internal port 9000 or 9443.
Conclusion
Installing Portainer CE transforms any bare-metal Linux VPS into an elegant cloud dashboard, granting you the visual simplicity of enterprise PaaS providers while preserving 100% ownership of your infrastructure.
Originally published at faysal.cloud.
Top comments (0)