add new chinese translations
This commit is contained in:
29
pages.zh/common/docker-update.md
Normal file
29
pages.zh/common/docker-update.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# docker 更新
|
||||
|
||||
> 更新 Docker 容器的配置。
|
||||
> 此命令不支持 Windows 容器。
|
||||
> 更多信息:<https://docs.docker.com/reference/cli/docker/container/update/>.
|
||||
|
||||
- 更新重启策略,以便在特定容器退出时应用:
|
||||
|
||||
`docker update --restart={{always|no|on-failure|unless-stopped}} {{container_name}}`
|
||||
|
||||
- 更新策略,以便在特定容器以非零退出状态退出时重启最多三次:
|
||||
|
||||
`docker update --restart=on-failure:3 {{container_name}}`
|
||||
|
||||
- 更新特定容器可用的 CPU 数量:
|
||||
|
||||
`docker update --cpus {{count}} {{container_name}}`
|
||||
|
||||
- 更新特定容器的内存限制(以[M]egabytes为单位):
|
||||
|
||||
`docker update --memory {{limit}}M {{container_name}}`
|
||||
|
||||
- 更新特定容器内允许的最大进程 ID 数量(使用 `-1` 表示无限制):
|
||||
|
||||
`docker update --pids-limit {{count}} {{container_name}}`
|
||||
|
||||
- 更新特定容器可以交换到磁盘的内存量(以[M]egabytes为单位)(使用 `-1` 表示无限制):
|
||||
|
||||
`docker update --memory-swap {{limit}}M {{container_name}}`
|
Reference in New Issue
Block a user