This repository contains Docker container images based on Alpine Image with kubectl installed and set as entrypoint. So you just run the Docker container and give it the command you need to run
To get kubectl to work you need to supply kubernetes config file, you can use the -v <hostdir>:/root/.kube to mount a local volume in the container
docker run -v $(pwd)/docker/.kube:/root/.kube cdemi/kubectl:1.13.3 cluster-info
Content type
Image
Digest
Size
14.5 MB
Last updated
over 7 years ago
docker pull cdemi/kubectl