Guides tagged “docker”
Step-by-step MdmHost guides about docker, sorted A-Z.
73 guides · page 1 of 4
Add health checks to Docker containers
Write Docker health checks in a Dockerfile or Compose file, read a container's health status, start services in order with service_healthy, and understand how health relates to restarts.
Alert when a Docker container restarts or exits
Watch Docker restart counts and exit codes with a small script and a systemd timer, then send a Telegram, email or webhook notification when a container restarts or dies.
ARM servers and ARM VPS explained: are they right for you?
What ARM64 servers are, how they compare with x86 on performance per watt and price, software compatibility for web stacks and Docker, and how to test and migrate to an ARM VPS.
Back up Docker volumes with restic and restore them
Docker named volumes live under /var/lib/docker/volumes. This guide shows how to snapshot them with restic, verify the snapshot and restore it into a new volume.
Back up MySQL and PostgreSQL databases in Docker containers
Dump MySQL, MariaDB and PostgreSQL databases that run inside Docker containers, compress the files, and ship them off the server with restic.
Build and push Docker images with GitHub Actions
Set up a GitHub Actions workflow that builds your Docker image on every push and pushes it to GitHub Container Registry or Docker Hub, with tags and layer caching.
Centralise Docker logs with Loki and Promtail on a Linux VPS
Run Loki and Promtail in Docker Compose to collect container logs from every service on one server, then search and filter them in Grafana with LogQL.
Common Docker errors and how to fix them
A quick reference to the Docker and Docker Compose errors you meet most often on a VPS, what each one means and the command that fixes it.
Containerise a Python web app with Docker and Docker Compose
Write a production Dockerfile for a Flask or Django app, run it with Gunicorn, PostgreSQL and Redis in Docker Compose, and handle migrations, static files and logs.
Containers vs virtual machines: differences, pros and cons
Containers vs virtual machines compared: how Docker and LXC share the host kernel while KVM VMs run their own, plus isolation, performance, density and when to combine both.
Deploy a Self-Hosted App with Docker Compose from Scratch
Write a compose.yaml, keep your secrets in.env, start the stack with docker compose up -d, then verify it and update it later without losing data.
Docker basics: containers, images and registries explained
A plain-English introduction to Docker for VPS owners. Learn what images, containers, tags and registries are, how docker run differs from Compose, and when containers suit a small server.
Docker Compose depends_on and healthchecks: get startup order right
Use depends_on with condition: service_healthy so your app waits until the database accepts connections, and learn how to tune healthcheck timing without slowing every start.
Docker Compose file explained: services, volumes, networks and ports
A line-by-line walk through docker-compose.yml: what services, volumes, networks, ports and depends_on do, with a working example stack you can run on a Linux VPS.
Docker Compose for WordPress: Nginx, PHP-FPM and MariaDB
Build a WordPress stack with Docker Compose using separate Nginx, PHP-FPM and MariaDB containers, a persistent wp-content volume and a free Let's Encrypt certificate.
Docker Compose override files: separate dev and production configs
Keep one base Compose file and layer per-environment settings with a dev override file and a production file, merged with -f or COMPOSE_FILE.
Docker networks: bridge, host and custom networks explained
How Docker networking works on a VPS. Covers the default bridge, user-defined networks with built-in DNS, host mode, connecting containers across Compose projects and inspecting networks.
Docker persistent storage for non-root users on a Linux VPS
Set up Docker persistent storage so container data survives deletion, and fix ownership so a non-root user inside the container can read and write it.
Docker restart policies: keep containers running after a reboot
How Docker's restart policies work, what no, on-failure, always and unless-stopped do after a crash or VPS reboot, and how to change the policy on a container that is already running.
Docker run flags you will actually use (-d, -p, -v, -e, --restart)
The docker run options that matter on a VPS, explained with examples. Covers detached mode, port publishing, volumes, environment variables, names, restart policies and resource limits.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.83 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.67 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.53 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.49 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.67 guides
- DomainsRegistering, transferring and managing domains and nameservers.27 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.41 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.35 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.24 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.24 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.28 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.44 guides
- PleskWebsites, email, databases and settings in the Plesk panel.53 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.41 guides
- WHMCSBilling, automation, products and client management with WHMCS.52 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.107 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.138 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.72 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.83 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.80 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.127 guides
- Linux VPSSSH, packages, services and everyday Linux administration.265 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.73 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.82 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
