Kubernetes
kubectl -n $namespace exec -it $pod -- /bin/bashnote Double-dash The double dash (
--) separates the args passed to the command from the kubectl args
Docker
docker exec -it $container /bin/bashkubectl -n $namespace exec -it $pod -- /bin/bashnote Double-dash The double dash (
--) separates the args passed to the command from the kubectl args
docker exec -it $container /bin/bash