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
commit 1f0c3d5262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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 {