Skip to main content
DevOps Insightsguides & answers

Topic

Containers & Docker

Articles
9
Answered questions
3
Guides
3
On this page · 10 sections

A container packages an application with its dependencies and runs it against the host kernel, which is why it starts far faster than a virtual machine, which has to boot an entire operating system with its own kernel first. That single difference is the reason containers became the default unit of deployment.

Most container problems are not really about Docker. They are about image size, layer caching, what happens to writes inside a container that gets recreated, and how a process behaves when it receives SIGTERM. The material below covers the mechanics first, because the debugging only makes sense once the model is clear.

Learning paths

Existing pages in an order where each step answers a question the previous one raised, with an exercise at the end.

Guides

Step-by-step, with copy-paste commands and an assistant that answers questions about the guide you are reading.

Troubleshooting

Named errors and symptoms, each with its causes, a command that confirms each one, and the fix.

Commonly confused

Pairs of things that get mistaken for one another, and the problem the mix-up causes.

Why it works that way

The design decision behind the behaviour, and what it costs you.

What happens if

A failure followed step by step: what each part of the system does, and what you can change.

Tools

Run in your browser; nothing you paste is sent anywhere.

Interview practice

A question, then the follow-ups an interviewer asks when the first answer is right.

Articles

Ordered by how much they are read.

Diagram: a Deployment owns a ReplicaSet that keeps three Pods running on nodes, with a Service selecting them by label.
7 min
ContainersIntermediate

Kubernetes 101: The One Idea, Then the Nouns

Kubernetes explained through the control loop under Pods, Deployments and Services, so you can predict what the cluster will do, not just name its parts. Most introductions stop at the nouns.

#Kubernetes#Docker#Helm

Neeraj Jha

Updated

599
Diagram: Prometheus scraping metrics from exporters and an app, feeding Grafana dashboards and Alertmanager.
7 min
MonitoringBeginner

Monitoring Your Infrastructure with Prometheus and Grafana

Set up a production-grade monitoring stack with Prometheus and Grafana — metrics collection, PromQL queries, alerting, and dashboards.

#Prometheus#Grafana#Docker

Neeraj Jha

Updated

489
Diagram: an annotated Deployment manifest showing its kind, replica count, pinned image and missing resource requests.
10 min
ContainersBeginner

Reading a Kubernetes YAML You Did Not Write

How to get oriented in a Kubernetes YAML file you did not write: four hundred lines, in production, by somebody who left. An order that works, and why the file may not be what is running.

#Kubernetes#Helm

Neeraj Jha

Updated

221
Diagram: traffic from a client through an Ingress to a Service and on to three Pods, with the Service's cluster DNS name.
8 min
ContainersIntermediate

Understanding Kubernetes Networking: Services, Ingress, and DNS

Deep dive into Kubernetes networking — ClusterIP, NodePort, LoadBalancer, Ingress controllers, CoreDNS, and Network Policies explained with examples.

#Kubernetes#Nginx

Neeraj Jha

Updated

220
A CycloneDX SBOM excerpt beside what an SBOM answers and the questions it does not.
8 min
SecurityIntermediate

SBOMs: What They Answer, and What They Do Not

Most teams generate an SBOM and never read one. The single question it answers well, the four things it does not, and the difference between a compliance artifact and an operational one.

#CI/CD#Docker

Neeraj Jha

215
Diagram: a Helm chart's Chart.yaml, values.yaml and templates rendered into plain Kubernetes YAML and installed as a release.
8 min
ContainersIntermediate

Helm Charts: Packaging Kubernetes Applications

Master Helm charts for Kubernetes — chart structure, values, templates, repositories, environment management, and deployment best practices.

#Kubernetes#Helm

Neeraj Jha

Updated

185
A five-step container hardening list beside a docker run command that drops capabilities and runs read-only.
10 min
SecurityAdvanced

Securing Docker Containers, in Order of What It Buys You

The same ten-item checklist, ordered by the threat each item actually closes — and honest about which three matter most and what none of them protect you from.

#Docker#Linux

Neeraj Jha

Updated

169
Diagram of Will pip install here?: 1. You run pip install, 2. Inside a venv?, 3. Marker file present?, 4. pip.conf override?, 5. Refused.
3 min
ScriptingBeginnerNew

pip Says externally-managed-environment: What to Do

Why pip install now fails with externally-managed-environment on Ubuntu 24.04, Debian 12 and Homebrew, and the three fixes that work: a venv, pipx, or apt. Plus why it passes in GitHub Actions and fails in docker build.

#Python#Docker#Linux

Neeraj Jha

Diagram of Which push failure is yours?: 1. Read the error, 2. blob unknown, image digest, 3. Fix one, 4. timeout awaiting headers, 5. Fix two.
3 min
ContainersIntermediateNew

docker push Failing Since Docker 29.7? Two Causes

Since Docker 29.7, docker push can fail with blob unknown to registry on GitLab or with timeout awaiting response headers on slow registries. How to tell which one you have, and what fixes each.

#Docker#CI/CD

Neeraj Jha

Answered questions

Real questions from the community, with an accepted answer.

Other topics