add new chinese translations
This commit is contained in:
33
pages.zh/common/oc.md
Normal file
33
pages.zh/common/oc.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# oc
|
||||
|
||||
> OpenShift 容器平台 CLI。
|
||||
> 允许进行应用程序和容器管理。
|
||||
> 更多信息:<https://docs.openshift.com/container-platform/3.11/cli_reference/get_started_cli.html>。
|
||||
|
||||
- 登录到 OpenShift 容器平台服务器:
|
||||
|
||||
`oc login`
|
||||
|
||||
- 创建一个新项目:
|
||||
|
||||
`oc new-project {{project_name}}`
|
||||
|
||||
- 切换到现有项目:
|
||||
|
||||
`oc project {{project_name}}`
|
||||
|
||||
- 向项目添加新应用程序:
|
||||
|
||||
`oc new-app {{repo_url}} --name {{application}}`
|
||||
|
||||
- 打开到容器的远程 shell 会话:
|
||||
|
||||
`oc rsh {{pod_name}}`
|
||||
|
||||
- 列出项目中的 pod:
|
||||
|
||||
`oc get pods`
|
||||
|
||||
- 从当前会话注销:
|
||||
|
||||
`oc logout`
|
Reference in New Issue
Block a user