Understanding CMD and ENTRYPOINT in Dockerfiles
CMD and ENTRYPOINT both define what runs in a container but work differently — exec vs shell form, and how they interact when combined.
All the articles with the tag "devops".
CMD and ENTRYPOINT both define what runs in a container but work differently — exec vs shell form, and how they interact when combined.
Use docker cp to move files between running containers and your host machine — no volumes needed for one-off file transfers.
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.
Access services on the host machine from inside a Docker container using host-gateway or host.docker.internal — no hardcoded IPs.
Containers share the kernel; VMs have their own. Understand the isolation trade-offs, overhead differences, and when to use which.
Run multiple commands in one docker exec call using sh -c — pipe commands, chain with && or ;, and avoid repeated container roundtrips.
Shell globbing breaks inside docker exec because of how args are parsed — here's how to pass wildcards and asterisks correctly.
tmux sessions, windows, and panes for developers — layouts, plugins, and the .tmux.conf that makes it feel like a proper IDE.
Ansible configures servers; Terraform provisions infrastructure — learn when to use each, how they overlap, and why you probably need both.
Automate a full WordPress stack deployment — Docker, nginx, and MySQL — using Ansible playbooks instead of clicking through wizards.
Ansible, Puppet, Salt, and Chef all do configuration management — but they're very different. Pick the right one before you commit.