Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image for running kubectl within a container.
Full Description

Ceroic kubectl

kubectl is a simple image for running kubectl and serves as the base for other
K8S automation images. It was built with the purpose of running within a live
K8S cluster but can also be run locally so long as authentication is mounted.

It was basically copied from here:


As a base image for your own Dockerfile:

FROM ceroic/kubectl:latest

kubectl is available within the container.

$ docker run ceroic/kubectl which kubectl

If you'd like to test locally, perhaps using compose or while creating a
derived image, you can mount your local authentication as a volume.

$ docker run -v ~/.kube:/root/.kube ceroic/kubectl kubectl get po 

Docker Compose Example

version: '2'

    image: ceroic/kubectl
      - ~/.kube:/root/.kube:ro
    command: kubectl get po
Docker Pull Command
Source Repository