Jumping into containers

I always forget the syntax to jump into containers or k8s pods without invoking the entrypoint. This is a reminder for me.i

Docker

docker run -it --entrypoint <new entrypoint> <container>:<tag>

K8s

kubectl exec -n <namespace> <podname>  --stdin --tty [-c <containername>]  -- <new entrypoint>