add new chinese translations
This commit is contained in:
20
pages.zh/common/docker-context.md
Normal file
20
pages.zh/common/docker-context.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# docker 上下文
|
||||
|
||||
> 切换上下文以管理多个 Docker 环境。
|
||||
> 更多信息:<https://docs.docker.com/reference/cli/docker/context/>。
|
||||
|
||||
- 使用特定的 Docker 端点创建一个上下文:
|
||||
|
||||
`docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"`
|
||||
|
||||
- 基于 `DOCKER_HOST` 环境变量创建一个上下文:
|
||||
|
||||
`docker context create {{my_context}}`
|
||||
|
||||
- 切换到一个上下文:
|
||||
|
||||
`docker context use {{my_context}}`
|
||||
|
||||
- 列出所有上下文:
|
||||
|
||||
`docker context ls`
|
Reference in New Issue
Block a user