Cloud & DevOps

Containers

Step-by-step articles on Containers, part of our Cloud & DevOps collection.

  • 20 articles
  • 20 min of reading
  • 2 sub-topics
  • 01 Oct, 2026 last updated

Showing 20 articles

Kubernetes 1 min read

Kubernetes ConfigMaps and Secrets

The same image should run in development, staging and production. What changes between them (URLs, feature flags, credentials) belongs in ConfigMaps and Secrets. ConfigMap for non-sensitive settings apiVersion: v1 kind: ConfigMap metadata: name: api-config dat...

25 Aug, 2026 Author 1.12K 68
Read article
Docker 1 min read

How to Shrink Docker Images

Smaller images pull faster, start faster, cost less to store and contain fewer packages with vulnerabilities. Going from 1.2 GB to under 200 MB is common. 1. Choose a smaller base image node:22 (Debian full) - large, has build tools. node:22-slim - Debian with...

08 Aug, 2026 Author 418 131
Read article
Docker 1 min read

Docker Networking Explained

Most "it can't connect" problems with Docker come from a few networking rules. Once you know them, they're easy to reason about. User-defined bridge networks docker network create appnet docker run -d --name db --network appnet -e POSTGRES_PASSWORD=secret post...

21 Jul, 2026 Author 552 81
Read article
Docker 1 min read

Docker Security Best Practices

Containers isolate processes, but a careless image or run command can undo most of that protection. These practices close the common gaps. 1. Don't run as root RUN addgroup -S app && adduser -S app -G app USER app If an attacker exploits your app, they get the...

14 Jun, 2026 Author 829 38
Read article
Docker 1 min read

Container Health Checks and Restart Policies

A running process isn't necessarily a working one. It might be deadlocked, out of database connections or stuck in a crash loop. Health checks and restart policies help Docker notice and react. HEALTHCHECK in a Dockerfile HEALTHCHECK --interval=30s --timeout=3...

27 May, 2026 Author 516 78
Read article
Docker 1 min read

Debugging Docker Containers: A Practical Toolkit

When a container doesn't behave, work from the outside in: what does it log, how did it exit, what does its configuration look like, and what is happening inside? 1. Logs docker logs api # everything written to stdout/stderr docker logs -f --tail 100 api # fol...

09 May, 2026 Author 527 27
Read article
Kubernetes 1 min read

kubectl Debugging Cheat Sheet

When something breaks in Kubernetes, the answer is usually in a handful of commands. Start with the Pod's status, then events, then logs. First look kubectl get pods -n shop -o wide # status, restarts, node kubectl describe pod api-7d9f-x2k -n shop # events at...

09 May, 2026 Author 1.51K 122
Read article
Docker 1 min read

Docker Volumes vs Bind Mounts vs tmpfs

Containers are disposable, but data often isn't. Docker offers three ways to give a container storage beyond its own temporary layer. Named volumes docker volume create pgdata docker run -d -v pgdata:/var/lib/postgresql/data postgres:17 docker volume ls docker...

21 Apr, 2026 Author 340 46
Read article