Interview Prep/Jenkins/Plugins, JCasC & Jenkins on Kubernetes

How do you build container images inside Kubernetes agents without Docker?

AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer

Mounting the node's Docker socket gives every build root on the node and does not work on containerd-only clusters. Daemonless options:

  • Kaniko (executor:debug image): builds from a Dockerfile in user space; the original Google project was archived in 2025, maintained forks exist.
  • BuildKit rootless (moby/buildkit:rootless with buildctl-daemonless.sh), or a shared BuildKit deployment.
  • Buildah in rootless mode.

Each still runs as a privileged-ish workload in some form, so isolate builder pods on dedicated nodes.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes