containerState 里把 Config 映射成 map[string]string,真实返回是对象, 于是每次拓扑校验都报 invalid docker response——所有窗口都被误拒。
This commit is contained in:
@@ -78,11 +78,10 @@ func (d *dockerAPI) listProject(ctx context.Context, project string) ([]containe
|
|||||||
}
|
}
|
||||||
|
|
||||||
type containerState struct {
|
type containerState struct {
|
||||||
ID string `json:"Id"`
|
ID string `json:"Id"`
|
||||||
Labels map[string]string `json:"Config"`
|
|
||||||
Config struct {
|
Config struct {
|
||||||
Labels map[string]string `json:"Labels"`
|
Labels map[string]string `json:"Labels"`
|
||||||
} `json:"-"`
|
} `json:"Config"`
|
||||||
State struct {
|
State struct {
|
||||||
Running bool
|
Running bool
|
||||||
Status string
|
Status string
|
||||||
|
|||||||
Reference in New Issue
Block a user