Difference between revisions of "Kubernetes.io: Get a shell to a running container"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by 3 users 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 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 ==
 +
* <code>[[docker exec]]</code>
 +
* <code>[[sh]], [[ash]]</code>
 +
* <code>[[kubectl run -it alpine --image=alpine -- sh]]</code>
 +
* [[Lens]]
  
* <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/))
+
* https://stackoverflow.com/questions/25267372/correct-way-to-detach-from-a-container-without-stopping-it ctrl+p ctrl+q
  
 +
== See also ==
 +
* {{kubectl exec}}
  
  
 
[[Category:CKAD]]
 
[[Category:CKAD]]

Latest revision as of 16:48, 15 October 2024

Advertising: