Docker & DevOps
Containers, Git deploys, automation, monitoring and backups.
58 guides · page 2 of 3
Free disk space with docker system prune
Find out how much space Docker uses with docker system df, then safely prune unused images, build cache, stopped containers and volumes, and schedule a cleanup that never touches your data.
Git push-to-deploy with a bare repository and post-receive hook
Set up a bare Git repository on your Linux VPS and a post-receive hook so that every push checks out your code into the live directory and restarts the service.
Host a Minecraft Server with Docker Compose on a Linux VPS
Run a Java Edition Minecraft server in Docker Compose on a Linux VPS, with a persistent world volume, memory limits, a whitelist and a plain backup routine.
Host a Valheim Dedicated Server with Docker
Run a Valheim dedicated server with Docker on a Linux VPS — compose file, UDP ports, persistent world data and safe updates.
Install Portainer to manage Docker containers from a web UI
Run Portainer CE on your Docker VPS, secure it with HTTPS and use it to start, stop, update and inspect containers, stacks, volumes and networks.
Limit Docker container CPU and memory
Stop one container from slowing down your whole VPS. Set memory and CPU limits with docker run and Docker Compose, watch usage with docker stats and avoid out-of-memory kills.
Manage secrets and environment variables in Docker Compose
Keep API keys and database passwords out of your compose file using.env files, environment keys and Docker secrets, then confirm containers read them correctly.
Monitor Docker containers with Prometheus, cAdvisor and Grafana
Run cAdvisor, Prometheus and Grafana in Docker Compose on a Linux VPS and get per-container CPU, memory, network and disk graphs in one dashboard.
Monitor your VPS with node_exporter and Grafana dashboards
Install node_exporter on a Linux VPS, scrape it with Prometheus and build a Grafana dashboard so you can see CPU, memory, disk and network history instead of guessing.
Move Docker data root to another disk or path
Move Docker's data from /var/lib/docker to a bigger disk. Stop the daemon, copy the data, set data-root in daemon.json, handle the containerd image store and verify images and volumes survived.
Nginx Proxy Manager in Docker: HTTPS for many self-hosted apps
Run Nginx Proxy Manager in Docker, add proxy hosts for each app and issue free Let's Encrypt certificates from a single web UI.
Open a shell inside a running Docker container
Use docker exec to get a bash or sh shell inside a running container, run one-off commands, act as root or another user, and copy files in and out with docker cp.
Push images to Docker Hub or GitHub Container Registry
Publish your own Docker images to Docker Hub or GitHub Container Registry. Log in with access tokens, tag images properly, keep them private and pull them on your VPS.
Restore a single file or folder from a restic snapshot
Find the right restic snapshot, restore just one file or directory to a temporary path, and put it back in place without running a full restore.
Roll back a bad deploy using Docker image tags
Tag every release, pin the version in your Compose file, and switch back to the previous image when a deploy breaks production. Includes verification and rollback of the database step.
Run a Discord Bot 24/7 on a VPS with Docker
Keep your Discord bot online around the clock by packaging it in a Docker image, passing the token as an environment variable and letting a restart policy bring it back after crashes or reboots.
Run a Node.js app with Docker Compose behind Nginx
Containerise a Node.js app with a small Dockerfile, run it with Docker Compose next to an Nginx reverse proxy, and add logs, restarts and HTTPS.
Run a private Docker registry on your VPS
Host your own private Docker registry with the official registry image. Add TLS through a reverse proxy and basic auth, push and pull images, run garbage collection and size the storage.
Run a Telegram bot with Docker and auto-restart it
Containerise a Telegram bot, keep it running with a Docker restart policy, and read the logs when something breaks.
Run Docker in rootless mode on Ubuntu
Set up Docker rootless mode on Ubuntu so the daemon and containers run as a normal user. Covers the setup tool, the user systemd service, ports below 1024, storage and the trade-offs.
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 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.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 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.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 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.
