Interview Prep/Docker/Build Performance & CI

What is `zstd` compression for images and how do you enable it?

IntermediateProductionBuild Performance & CI
Answer

zstd decompresses much faster than gzip at similar ratios, speeding up pulls. Build with --output type=image,name=reg/app:1,push=true,compression=zstd,force-compression=true. Registries and runtimes (containerd 1.5+, recent Docker) support it; very old nodes or registries may not.

All Docker questions Roadmap: Docker & containers

More on Build Performance & CI