Difference between revisions of "Kubernetes.io: Get a shell to a running container"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* <code>[[docker exec]]</code> | * <code>[[docker exec]]</code> | ||
* <code>[[sh]], [[ash]]</code> | * <code>[[sh]], [[ash]]</code> | ||
− | * <code>[[kubectl run -it alpine --image=alpine -- sh | + | * <code>[[kubectl run -it alpine --image=alpine -- sh]]</code> |
== See also == | == See also == |
Revision as of 13:08, 6 February 2024
https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/
kubectl exec -it redis -- /bin/bash
(Get a shell to a running container (https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/))
Related
See also
Advertising: