Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2022 08:46
What would you like to do?
k8s container docker exec
# enter any kubernetes pod/container directly just by "part" of it's cotnainer name
cshell ()
docker exec -it $(docker ps |grep "k8s_$d" | awk '{print $1}' | head -1) /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment