Skip to main content

30 posts tagged with "Docker"

Container fundamentals with Docker

View All Tags

Docker Environment Variables — .env Files, Secrets, and Config Management

· 7 min read
Goel Academy
DevOps & Cloud Learning Hub

You hard-coded the database password in the Dockerfile. It worked in development. Then someone pushed the image to a public registry. Now your database password is on the internet forever, baked into an immutable image layer that docker history will happily reveal to anyone. Environment variables done right prevent this entire class of mistakes.

Docker Health Checks — Don't Route Traffic to Dead Containers

· 8 min read
Goel Academy
DevOps & Cloud Learning Hub

Your container is "running." The process has PID 1, Docker says status is Up 47 minutes, and everything looks fine. Except the application inside crashed 20 minutes ago, the event loop is deadlocked, or the database connection pool is exhausted. Traffic keeps flowing in. Users keep getting 502 errors. Docker has no idea anything is wrong because "running" and "healthy" are not the same thing.