Docker Image with Kubectl installed
Supposing that you have a ~/.kube/config file that you want to pass to the container.
docker run \
-e KUBE_CONFIG="$(cat ~/.kube/config)" \
rhuankarlus/kubectl
Hey, note that the " wrapping the cat command are mandatory.
Content type
Image
Digest
Size
14.7 MB
Last updated
over 5 years ago
docker pull rhuankarlus/kubectl