You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/reference/kubectl/docker-cli-to-kubectl.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,10 @@ You can use the Kubernetes command line tool kubectl to interact with the API Se
25
25
<!-- body -->
26
26
## docker run
27
27
28
-
<!--
29
-
To run an nginx Deployment and expose the Deployment, see [kubectl run](/docs/reference/generated/kubectl/kubectl-commands/#run).
28
+
<!--
29
+
To run an nginx Deployment and expose the Deployment, see [kubectl create deployment](/docs/reference/generated/kubectl/kubectl-commands#-em-deployment-em-).
By default images run in the background, similar to `docker run -d ...`. To run things in the foreground, use:
99
+
<!--
100
+
By default images run in the background, similar to `docker run -d ...`. To run things in the foreground, use [`kubectl run`](/docs/reference/generated/kubectl/kubectl-commands/#run) to create pod:
94
101
-->
95
-
默认情况下镜像会在后台运行,与 `docker run -d ...` 类似,如果您想在前台运行,使用:
102
+
默认情况下镜像会在后台运行,与 `docker run -d ...` 类似,如果您想在前台运行,使用[`kubectl run`](/docs/reference/generated/kubectl/kubectl-commands/#run) 在前台运行 Pod:
96
103
97
104
```shell
98
105
kubectl run [-i] [--tty] --attach <name> --image=<image>
0 commit comments