Docker Compose useful commands
The docker compose commands you actually use daily — up, down, logs, exec, pull, and the flags that make them way more useful.
All the articles with the tag "devops".
The docker compose commands you actually use daily — up, down, logs, exec, pull, and the flags that make them way more useful.
Access services on the host machine from inside a Docker container using host-gateway or host.docker.internal — no hardcoded IPs.
Learn how to set Docker resource limits for memory, CPU, swap, and PIDs. Practical guide with real-world sizing examples, OOM killer behavior, and cgroups explained.
The -v and --mount flags for Docker volumes explained — bind mounts vs named volumes, read-only, propagation, and tmpfs options.
COPY and ADD look similar but ADD auto-extracts tarballs and fetches URLs — know when each is appropriate and why COPY is usually better.
Add load balancing and failover to your Docker setup using Swarm, nginx, HAProxy, and Keepalived — high availability without Kubernetes.
Shell globbing breaks inside docker exec because of how args are parsed — here's how to pass wildcards and asterisks correctly.
Build one Grafana dashboard that adapts to any host or data source using variables — query, custom, constant, and interval types with real examples.
Move Docker images between hosts without a registry using docker save and docker load — air-gapped deployments made simple.
Generate code documentation with Doxygen without installing it — run it from a Docker container and get HTML docs from any codebase.
Learn how lazydocker and dive make Docker manageable from your terminal. TUI dashboards, image layer analysis, CI integration, and optimization tips.
Automate Docker container deployment with shell scripts, cron, and Ansible — stop SSHing in and restarting things by hand.