Skip to main content

Containers

Browse all articles, tutorials, and guides about Containers

24posts

Guides

Posts

Python
|12 min read

Python 3.15 Made UTF-8 the Default. We Ran 13 Cases in Seven Linux Locales to See What Changes

Python 3.15 turns on UTF-8 mode everywhere. With container locale settings, none of our 13 encoding cases changed. On a UTF-8 server, only stdin and stdout changed. On a legacy-locale host, almost everything did, and the PYTHONUTF8=0 opt-out dropped LC_ALL=C processes to ASCII.

Linux
|11 min read

CVE-2026-80521: The Ubuntu Container Escape Is Not Just an Ubuntu Problem

A public exploit breaks out of default Docker and Kubernetes containers through a bug in the AF_UNIX garbage collector, and Ubuntu 24.04 and 26.04 still have no kernel fix. The same code sits in the 6.1 and 6.6 LTS kernels, where upstream has no fix either. Here is how to check any node in one command, and what to do while you wait for a patch.

Kubernetes
|12 min read

containerd 1.7 Reaches End of Life: What Breaks on 2.x

We ran containerd 1.7.36, 2.3.6 and 2.4.1 against the same data and an old node config. The config still loaded and the mirrors still worked. What broke was pulling schema 1 images, and it stays hidden until a node has to pull one.

Docker
|16 min read

Why Your Base Image Has 1,684 CVEs

I inventoried 17 base images straight from the registry and counted every advisory against the exact package versions inside. The totals are larger than you expect, one package produces most of them, and the runtime you actually run is not in the count at all.

Docker
|9 min read

Stop Compiling Postgres Extensions in Your Dockerfile: How pglayers Works

Adding pgvector or PostGIS to a Postgres image usually means apt-get, build tools, and a fat, slow image. pglayers ships each extension as a scratch Docker layer you COPY in. Here is how it works and when to use it.

Kubernetes
|13 min read

Build the Container Boundary You Do Not Have: Seccomp Profiles with the Security Profiles Operator

A container is not a security boundary out of the box, but you can build one. Here is a hands-on guide to recording, tuning, and enforcing seccomp profiles with the Security Profiles Operator, which just shipped v1.0.

Security
|10 min read

Your Container Is Not a Security Boundary: GhostLock (CVE-2026-43499)

A 15-year-old Linux kernel bug just got a public exploit that breaks out of containers and hands any local user root on the host. GhostLock is a reminder that the container is not your security boundary, the shared kernel is. Here is what actually shrinks the blast radius.

Docker
|19 min read

How Docker Really Works, From docker run to the Kernel

You type docker run and a container appears. Follow the CLI, dockerd, containerd and runc down to the kernel, with the commands to watch each step. Then get clear answers on image vs container, docker run vs start, containers vs VMs, the performance cost, and when Compose is enough.

Docker
|8 min read

The Docker AuthZ Bypass Is Back: CVE-2026-34040

CVE-2026-34040 lets a crafted API request slip past Docker authorization plugins, and it is an incomplete fix of the 2024 maximum-severity bug. Here is how the bypass works, who is exposed, and how to close it.

Kubernetes
|11 min read

hostNetwork Is Still a Footgun: What CVE-2026-32193 Teaches Every Cluster

A recent AKS advisory let an untrusted pod with hostNetwork break out to the worker node. The Azure-specific bug is patched, but the footgun that made it reachable lives on every Kubernetes cluster. Here is how the escape class works and what to actually lock down.

DevOps
|12 min read

CVE-2026-31431 Copy Fail: A 4-Byte Kernel Write That Escapes Containers

A new Linux kernel bug lets any unprivileged process flip 4 bytes in the page cache and break out of a container. runtime-default seccomp does not block it. Here is what to do.

Docker
|12 min read

5 Advanced Docker Features Worth Knowing

Go beyond Docker basics with BuildKit, multi-stage builds, health checks, init processes, and build secrets. Learn practical techniques that improve security, performance, and reliability.

Docker
|18 min read

Forward Host Port to Docker Container

Publish container ports with -p, bind them to localhost, add a port to a container that already runs, understand ports vs expose in Compose, connect to Postgres in a container, find a container IP, and connect containers from different Compose projects.

Docker
|16 min read

How to Access a Docker Container's Shell, Run Commands and Copy Files

Open a shell with docker exec, run one-off commands, get root without sudo, add bash or ps to a slim image, edit and copy files with docker cp, look inside an image that has no shell, and debug a stopped container.

Docker
|7 min read

docker compose: Always Recreate Containers from Fresh Images

Run docker compose up -d --pull always --build --force-recreate to pull newer images, rebuild local ones and replace containers instead of reusing them.

Docker
|5 min read

Docker: Connect to the Host's localhost from a Container

Use host.docker.internal, not localhost. Docker Desktop resolves it; on Linux add --add-host=host.docker.internal:host-gateway or use --network host.

Docker
|7 min read

How to Get the IP Address of the Docker Host from Inside a Docker Container

Need your container to talk to the Docker host? Learn practical ways to discover the host's IP address from inside a container, with examples for Linux, macOS, and Windows.

Docker
|16 min read

How to Rebuild, Restart and Upgrade a Docker Compose Container

restart, up -d, up --build and --force-recreate each apply a different kind of change, and only one of them rebuilds your image. Tested on Compose 5.6: which command picks up which change, how to start only some services, wait for a healthy database, upgrade without losing data, get a shell in a crashed service, and what changed from docker-compose v1.

Docker
|16 min read

Difference Between RUN, CMD and ENTRYPOINT in a Dockerfile

RUN executes at build time, CMD sets the default command, and ENTRYPOINT sets the program that always runs. See how the three combine, why a container exits at once, how to run cron, when ADD beats COPY, and how comments work in a Dockerfile.

Docker
|5 min read

Docker: How to Change Repository Name or Rename an Image

Learn how to rename a Docker image or change its repository name using simple Docker CLI commands. This guide covers real-world scenarios and best practices.

Docker
|13 min read

How to List and Remove Docker Containers and Images

List running and stopped containers, fix "name is already in use", remove old containers and images safely, delete every local image, find where Docker stores its data, and free disk space when Docker fills the disk.

Kubernetes
|16 min read

How to Restart, List and Keep Containers Running in a Kubernetes Pod

Kubernetes has no command to restart one container. Learn the ways that work, how to restart pods after a ConfigMap or Secret change, how to list containers, run several commands, keep a container running, and use local images.