| 默认行为 | 输出合并后的完整配置(含变量替换结果) |
|---|---|
| --services | 只列服务名(脚本用) |
| --volumes / --profiles | 列出卷/可用 profile |
| --quiet | 只校验,不输出内容(CI 门禁常用) |
使用示例
使用示例
docker compose config --quiet
docker compose config | head -60
docker compose config --servicesconfig 输出里密钥会明文显示:在终端或 CI 日志里注意遮蔽,别直接贴进工单。