Difference between revisions of "Kubernetes.io: Get a shell to a running container"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/ | https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/ | ||
− | * <code>[[kubectl | + | * <code>[[kubectl exec -it]] redis -- /bin/bash</code> (Get a shell to a running container (https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/)) |
== Related == | == Related == | ||
* <code>[[docker exec]]</code> | * <code>[[docker exec]]</code> | ||
− | * [[sh]], [[ash]] | + | * <code>[[sh]], [[ash]]</code> |
+ | * <code>[[kubectl run -it alpine --image=alpine -- sh]]</code> | ||
+ | * [[Lens]] | ||
+ | |||
+ | * https://stackoverflow.com/questions/25267372/correct-way-to-detach-from-a-container-without-stopping-it ctrl+p ctrl+q | ||
== See also == | == See also == |
Latest revision as of 16:48, 15 October 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[edit]
- https://stackoverflow.com/questions/25267372/correct-way-to-detach-from-a-container-without-stopping-it ctrl+p ctrl+q
See also[edit]
Advertising: