Building Docker images in a Kubernetes cluster is becoming increasingly common among engineers, as it offers several benefits such as automation, consistency, and monitoring of microservices. However, this approach also presents technical hurdles that require workarounds. Several tools are available to build Docker images in a Kubernetes cluster, including Buildah, img, kaniko, Docker in Docker, Sysbox Enterprise Edition, BuildKit CLI, Jib for Java containers, KO for Go applications, and others. These tools offer varying levels of security, convenience, and compatibility with different environments. The Docker in Docker method is commonly used in CI/CD pipelines but has security concerns and limitations, whereas kaniko provides a secure way to build Docker images without relying on a Docker daemon. Kaniko works by running the Dockerfile commands individually, taking snapshots of the userspace after each command, and appending them to the base layer. Creating a Kubernetes Secret for kaniko is necessary for authentication with Docker Hub, and the tool integrates seamlessly with other tools such as GitHub, Jenkins, and Snyk for container security. By using kaniko, developers can build and deploy Docker images from their Kubernetes cluster securely and efficiently.