mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Fix format issue
This commit is contained in:
@@ -84,7 +84,7 @@ command: echo "hello world"
|
||||
|
||||
### `configs`
|
||||
|
||||
仅用于 `Swarm mode`(已弃用,推荐使用 Kubernetes)。
|
||||
`configs` 来自 Compose Specification。它在 Swarm 中是原生对象;在本地 `docker compose` 模式下通常以文件挂载的形式实现,具体能力取决于 Compose 版本与运行平台。
|
||||
|
||||
### `cgroup_parent`
|
||||
|
||||
@@ -108,7 +108,7 @@ container_name: docker-web-container
|
||||
|
||||
### `deploy`
|
||||
|
||||
仅用于 `Swarm mode`(已弃用,推荐使用 Kubernetes)。
|
||||
`deploy` 用于描述副本数、更新策略、资源限制等部署参数。该字段在 Swarm 中支持最完整;在本地 `docker compose up` 场景下通常只有部分字段生效。
|
||||
|
||||
### `devices`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user