Merge pull request #15368 from m0duspwnens/api_sort_hc_binds

sort hc.Binds returned from compat api
This commit is contained in:
OpenShift Merge Robot
2022-08-17 23:06:39 +00:00
committed by GitHub

View File

@ -467,6 +467,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
if err := json.Unmarshal(h, &hc); err != nil {
return nil, err
}
sort.Strings(hc.Binds)
// k8s-file == json-file
if hc.LogConfig.Type == define.KubernetesLogging {