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 {
|
||||
ID string `json:"Id"`
|
||||
Labels map[string]string `json:"Config"`
|
||||
ID string `json:"Id"`
|
||||
Config struct {
|
||||
Labels map[string]string `json:"Labels"`
|
||||
} `json:"-"`
|
||||
} `json:"Config"`
|
||||
State struct {
|
||||
Running bool
|
||||
Status string
|
||||
|
||||
Reference in New Issue
Block a user