More Docker. Easy Access. New Streamlined Plans. Learn more.

Docker Labs K8s Toolkit

Verified Publisher

50K+

docker/labs-k8s-toolkit-extension:0.0.46

By Docker Inc.

Updated about 1 year ago

A Kubernetes debugging toolkit. Get your favorite shell with all your debug tools into any pod/container.

Get more out of Docker with a free Docker ID

Sign up for a Docker ID to gain access to all the free features Docker has to offer, including unlimited public repositories, increased container image requests, and much more.

Sign Up
Usage

Get a shell into any image or container, local or remote. Comes with bash/fish/zsh shell, NixOS based package manager, dynamic port forwarding, nice prompt and more.

Get a debug shell into your pod:

kubectl shell my-pod

...in namespace foo with a fish shell:

kubectl shell -n foo --shell=fish my-pod

...in container bar in pod my-pod in namespace foo:

kubectl shell -n foo -c bar my-pod

Syntax

kubectl shell [OPTIONS] POD

Built-in commands:

  • install: add any tool available on NixOS
  • uninstall

Options:

  • --shell select bash, fish or zsh shell (default auto)

Note: The /nix directory is never visible to the actual image/container.

For more details run kubectl shell --help.

Resources