K8s Tools Docker Images - Velero
544
Lightweight, Versioned Velero CLI Container for Seamless Kubernetes Backup and Restore Management
This repository provides a Docker image under the anvesh35/velero-cli namespace that packages the Velero CLI into a lightweight, self-contained container. This allows users to manage Kubernetes backups and restores without installing Velero 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/velero-cli repository.
Tags follow the pattern <version>, for example v1.11.0, to indicate the Velero version included in the image.
git clone https://github.com/anveshmuppeda/kubernetes.git
cd dockerfiles/k8s-tools/velero
Replace <version> with the desired Velero version (e.g., v1.11.0):
docker build \
--build-arg VELERO_VERSION=<version> \
-t anvesh35/velero-cli:<version> .
Example:
docker build \
--build-arg VELERO_VERSION=v1.11.0 \
-t anvesh35/velero-cli:v1.11.0 .
To use the pre-built image from Docker Hub, pull it using:
docker pull anvesh35/velero-cli:<version>
Example:
docker pull anvesh35/velero-cli:v1.11.0
Run the container interactively with your kubeconfig mounted for cluster access:
docker run --rm -it \
--network host \
-v $HOME/.kube/config:/home/velero/.kube/config:ro \
anvesh35/velero-cli:<version> bash
This opens a Bash shell with Velero installed and ready to use.
Run Velero commands directly without entering the container:
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/velero/.kube/config:ro \
anvesh35/velero-cli:<version> \
velero backup get
velero user to adhere to container security best practices.v1.11.0).docker run --rm \
anvesh35/velero-cli:v1.11.0 \
velero version
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/velero/.kube/config:ro \
anvesh35/velero-cli:v1.11.0 \
velero backup get
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:250e47f17…
Size
73.8 MB
Last updated
over 1 year ago
docker pull anvesh35/velero-cli