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.
More on Runtimes: containerd, OCI, rootless and Podman
Explain the path from `docker run` to a running process.IntermediateKubernetes removed dockershim. What does that mean for your Docker-built images?BeginnerRun rootless Docker for developers on a shared Linux box.IntermediatePodman vs Docker: when would you pick Podman?IntermediateRun a Podman container as a systemd service.IntermediateWhat is the OCI and which specs does it define?Beginner