K8s Tools Docker Images - Helm
320
Lightweight, Versioned Helm CLI Container for Seamless Kubernetes Management
The source code for this image can be found in the kubernetes repository.
The Dockerfile is located in the dockerfiles/k8s-tools/helm directory.
The image is built using a multi-stage build process, ensuring a minimal footprint and secure.
This repository provides a Docker image under the anvesh35/helm-cli namespace that packages the Helm CLI into a lightweight, self-contained container. This allows users to manage Kubernetes clusters without installing Helm locally. The image is built using a multi-stage build process on Alpine Linux, ensuring a minimal footprint and secure execution.
All images are hosted on Docker Hub under the anvesh35/helm-cli repository.
Tags follow the pattern <version>, for example v3.12.3, to indicate the Helm version included in the image.
git clone https://github.com/anveshmuppeda/kubernetes.git
cd dockerfiles/k8s-tools/helm
Replace <version> with the desired Helm version (e.g., v3.12.3):
docker build \
--build-arg HELM_VERSION=<version> \
-t anvesh35/helm-cli:<version> .
Example:
docker build \
--build-arg HELM_VERSION=v3.12.3 \
-t anvesh35/helm-cli:v3.12.3 .
To use the pre-built image from Docker Hub, pull it using:
docker pull anvesh35/helm-cli:<version>
Example:
docker pull anvesh35/helm-cli:v3.12.3
Run the container interactively with your kubeconfig mounted for cluster access:
docker run --rm -it \
--network host \
-v $HOME/.kube/config:/home/helm/.kube/config:ro \
anvesh35/helm-cli:<version> bash
This opens a Bash shell with Helm installed and ready to use.
Run Helm commands directly without entering the container:
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/helm/.kube/config:ro \
anvesh35/helm-cli:<version> \
helm ls
docker run --rm -it \
--network host \
-v $HOME/.kube/config:/home/helm/.kube/config:ro \
anvesh35/helm-cli:<version> bash
This opens a TTY session with Helm installed and ready to use.
helm user to adhere to container security best practices.v3.12.3).docker run --rm \
anvesh35/helm-cli:v3.12.3 \
helm version
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/helm/.kube/config:ro \
anvesh35/helm-cli:v3.12.3 \
helm ls -A
Contributions are welcome via GitHub pull requests. Please follow multi-stage build patterns, use semantic versioning for new tool images, and adhere to lowercase, hyphenated naming conventions.
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:f8997ce7d…
Size
35.1 MB
Last updated
over 1 year ago
docker pull anvesh35/helm-cli