Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

Use buildah or Kaniko to build images without a Docker daemon in CI.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Cannot expose the Docker socket in shared runners.

What I'd do → Kaniko runs in a pod without privileges:

/kaniko/executor --context $CI_PROJECT_DIR --dockerfile Dockerfile \
  --destination reg.example.com/app:$CI_COMMIT_SHA --cache=true

Or buildah bud rootless, or BuildKit rootless (rootlesskit buildkitd). Note that Kaniko's upstream is archived; forks and BuildKit are common alternatives now.

Why → No privileged daemon needed.

Interview tip → Say you verify maintenance status of tools before adopting.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman