add new chinese translations
This commit is contained in:
28
pages.zh/linux/lxc-profile.md
Normal file
28
pages.zh/linux/lxc-profile.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# lxc 配置文件
|
||||
|
||||
> 管理 LXD 容器的配置文件。
|
||||
> 更多信息:<https://linuxcontainers.org/lxd/docs/master/profiles>。
|
||||
|
||||
- 列出所有可用的配置文件:
|
||||
|
||||
`lxc profile list`
|
||||
|
||||
- 显示特定配置文件的配置:
|
||||
|
||||
`lxc profile show {{profile_name}}`
|
||||
|
||||
- 在默认编辑器中编辑特定配置文件:
|
||||
|
||||
`lxc profile edit {{profile_name}}`
|
||||
|
||||
- 从文件导入配置值编辑特定配置文件:
|
||||
|
||||
`lxc profile edit {{profile_name}} < {{config.yaml}}`
|
||||
|
||||
- 使用特定配置文件启动新容器:
|
||||
|
||||
`lxc launch {{container_image}} {{container_name}} --profile {{profile1}} --profile {{profile2}}`
|
||||
|
||||
- 更改正在运行的容器的配置文件:
|
||||
|
||||
`lxc profile assign {{container_name}} {{profile1,profile2}}`
|
Reference in New Issue
Block a user