Skip to content

Commit ae7f68e

Browse files
authored
Update pod.md
kubectl exec[POD][COMMAND]已停用,将在未来版本中删除。请改用kubectl exec[POD]--[COMMAND]。
1 parent df5cac6 commit ae7f68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ kubectl port-forward nginx-pod 4000:80
5050
`kubectl exec -it` 可以用来进入 Pod 内容器的 Shell。通过命令下面的命令来配置 `nginx` 的首页内容。
5151

5252
```shell
53-
kubectl exec -it nginx-pod /bin/bash
53+
kubectl exec -it nginx-pod -- /bin/bash
5454
5555
echo "hello kubernetes by nginx!" > /usr/share/nginx/html/index.html
5656

0 commit comments

Comments
 (0)