dtt is the text-mode interface for docker and kubectl command. the ui of dtt is inspired by vim, ranger and tig.
pip install dtt
Linux user may install ncurses library header and recompile python binary like this
sudo apt-get install libncurses5-dev
pyenv uninstall 3.8.2
pyenv install 3.8.2
Usage:
dtt
dtt -k | --kubectl
dtt -h | --help
dtt -c | --config
Options:
-k --kubectl kubectl mode
-h --help Show this screen and exit.
-c --config Show config
A main usecase for dtt is to login container or pod with shell.
Exec dtt
command and move to container with j or k key (like vim) and press Enter-key when you want to login the container or pod.
You can exec another shell or command with X
key when you select the container or pod.
Install below file on $HOME/.config/dtt/config.toml
[default]
shell = "/bin/sh"
logging_dir = "/tmp/dtt.log"
[default.kubectl]
namespace = "sample-namespace"
you can set default shell, looging directory, and default k8s namespace.
see README_DEV.md