docker alias for k9s and dive

This commit is contained in:
vonProteus 2024-08-24 18:12:23 +02:00
parent 4fd4765af4
commit 5e3c18c6a0
Signed by untrusted user who does not match committer: vonProteus
GPG Key ID: 65472F126055FF23

View File

@ -0,0 +1,11 @@
# vim: ft=zsh
if command-exists "docker"; then
if ! command-exists "k9s"; then
alias k9s='docker run --network host -it --rm -v ~/.kube:/root/.kube quay.io/derailed/k9s'
fi
if ! command-exists "dive"; then
alias dive='docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive'
fi
fi