File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
content/en/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ kubectl run nginx --image=nginx # Run pod nginx and write it
311
311
kubectl attach my-pod -i # Attach to Running Container
312
312
kubectl port-forward my-pod 5000:6000 # Listen on port 5000 on the local machine and forward to port 6000 on my-pod
313
313
kubectl exec my-pod -- ls / # Run command in existing pod (1 container case)
314
- kubectl exec --stdin --tty my-pod -- /bin/bash # Get active shell access to a running pod (1 container case)
314
+ kubectl exec --stdin --tty my-pod -- /bin/sh # Interactive shell access to a running pod (1 container case)
315
315
kubectl exec my-pod -c my-container -- ls / # Run command in existing pod (multi-container case)
316
316
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
317
317
```
You can’t perform that action at this time.
0 commit comments