🇩🇪 DE 🇬🇧 EN
NexoraHost / Docs home
Popular searches:Minecraft won't startCreate Minecraft serverFiveM txAdminInstall WordPressSet up subdomainVPS GermanySSL errorOpen port 25565Discord bot hostingDNS troubleshooting

Docker & Containers on NexoraHost – Complete Guide

Quick answer: Docker packages apps with dependencies – same environment on laptop and VPS. For production: Compose + restart policies + reverse proxy.

Related

VPS & root servers: Order VPS in Germany · panel.nexorahost.de · nexorahost.com (Maincubes FRA01 Frankfurt · Ryzen · NVMe · GDPR)

Frequently asked questions (FAQ)

Docker vs. VPS – should I use containerization?
Docker: fast deployments, portable, dev/prod identical, better resource use. VPS: simpler for beginners, direct access. Recommendation: use Docker from 2+ services. Single small app? VPS enough.
How do I install Docker on my NexoraHost root server?
Ubuntu: `curl https://get.docker.com | sh`, then Docker Compose. Then create docker-compose.yml for your apps (nginx, postgres, app). Start: `docker-compose up -d`. Management: Portainer for GUI, or CLI. 15 min setup.
Docker image vs. container – what's the difference?
Image: template (like VM snapshot). Container: running instance (like VM). Analogy: image = recipe, container = cooked food. Registry (Docker Hub) = online recipes. First pull image, then start container.
Multi-container setup with Docker Compose – game server + database?
docker-compose.yml with services: gameserver (Minecraft), postgres (DB), redis (cache). Network auto-connects. Volumes for persistence. Start: docker-compose up -d. Logs: docker-compose logs -f service-name. Scale: 100 players with Compose no problem.
Docker limits – how much memory/CPU can I use?
Per container customizable: memory limit, CPU shares. Total: everything your root server has. Recommendation: set limits to prevent runaway containers. On 8GB VPS: 1-2GB per app. Monitoring: docker stats.
Docker volumes – store persistent data?
Volumes = mounted directories between host & container. Define in docker-compose.yml: `volumes: - /data:/container/data`. Data persists even if container deleted. Backup: backup host files.
Docker security – how do I protect my containers?
1. images from trusted sources, 2. update images regularly, 3. no secrets in image (use ENV), 4. non-root user in container, 5. network isolation (internal networks), 6. read-only filesystems. Scanning: trivy image scan.
Private Docker registry – host own images?
Docker registry container on own server. Then: `docker push my-registry.de:5000/my-app`. Alternative: Gitea/Harbor for enterprise. Advantage: full control, no Docker Hub dependency, faster.
Docker backup & disaster recovery?
Backup: volumes (host-side), version-control docker-compose.yml, export images. Restore: load old compose file, restore volumes, restart. Automated: Velero or custom Bash scripts.
When should I upgrade from Docker to Kubernetes?
Docker (Compose): up to ~50 containers, 1-3 servers. Kubernetes: from 100+ containers, multiple clusters. Docker Swarm: middle ground, rarely used. Recommendation: Docker up to 50 containers, then consider K8s.

NexoraHost

Need hosting?

Game servers, VPS & webspace at Maincubes FRA01 – 1 Tbit/s DDoS, 99.9% uptime SLA.

nexorahost.com · Maincubes FRA01 · 1 Tbit/s DDoS · 99,9 % Uptime