docker config inspect
功能:查看配置对象的详细信息。
语法:
docker config inspect [OPTIONS] CONFIG_NAME
示例:
docker config inspect my_config
输出示例:
{
"ID": "abc123",
"Version": {
"Index": 1
},
"CreatedAt": "2023-10-01T12:00:00Z",
"UpdatedAt": "2023-10-01T12:00:00Z",
"Spec": {
"Name": "my_config",
"Data": "base64-encoded-config-data"
}
}
使用场景:
- 查看配置对象的内容和元数据。
- 调试配置对象的使用情况。