Menu

📰
0

Pumba v1.1.0: Native Podman Support, and What "Docker-Compatible API" Actually Means

DEV Community: kubernetes·Alexei Ledenev·about 1 month ago
#bSZNxhb2
#dev#code#podman#pumba#docker#cgroup
Reading 0:00
15s threshold

Pumba — a container chaos CLI I've maintained since 2016 — just shipped v1.1.0 with native Podman runtime support alongside Docker and containerd. I'd expected this to be the quiet release. Podman advertises a Docker-compatible API. The Docker SDK connects to its socket and most calls work unchanged. That part turned out to be true. What I didn't expect: the 10% where it doesn't match are exactly the calls a chaos tool lives on. The landmines 1. ContainerExecStart with empty options Docker accepts ExecStartOptions{} — no AttachStdout, no AttachStderr, no Detach. Podman rejects it outright: "must provide at least one stream to attach to." Four callsites in pumba (tc exec, iptables exec, exec-on-container, command-existence check) had to switch from ContainerExecStart to ContainerExecAttach + drain + ContainerExecInspect . About sixty test mocks needed updating for flags Docker didn't require. 2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More