Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 493 Bytes

kubectl.md

File metadata and controls

16 lines (13 loc) · 493 Bytes

kubectl

Developer Experience

The simplest way to use kubectl is to just mount the $HOME/.kube directory in the container.

docker run -it --rm \
  --mount type=bind,source=$HOME/.cache,target=/home/anvil/.cache \
  --mount type=bind,source=$HOME/.ssh,target=/home/anvil/.ssh \
  --mount type=bind,source="$(pwd)",target=/home/anvil/workdir \
  --mount type=bind,source=$HOME/.kube,target=/home/anvil/.kube \
  --workdir /home/anvil/workdir \
  saicoss/anvil:latest \
  bash