Docker on K8s

Traditional docker engine in K8s is kaput, gone. We need to build docker images another way.

Different ways of building your docker containers in K8s without docker engine

Description Note
BuildKit DOCKER_BUILDKIT=1 docker build . -
Buildah and Podman Docker Compose in the K8s cloud developed by RedHat
kaniko Build container images from a Dockerfile, inside a container or Kubernetes cluster -
k3c Docker for Kubernetes (to use with k3s) -
Bazel Google’s generic build system. rules_docker can build Docker images, but equivalent of RUN instruction is intentionally omitted due to poor reproducibility no Dockerfile needed

Which one is the best?

  • Current recommendation is BuildKit or Kaniko.
Docker  K8s