diff options
author | Josh Patterson <josh.patterson@securityonionsolutions.com> | 2022-08-17 14:39:32 -0400 |
---|---|---|
committer | Josh Patterson <josh.patterson@securityonionsolutions.com> | 2022-08-17 14:39:32 -0400 |
commit | aa197a65ff245f4d244968fd6010537a76a42e10 (patch) | |
tree | a6897d7df8f2d677e5374b607ef3462796dc49fc /pkg/api | |
parent | 3aa92010dfd56fcc674fb998ad2d8551acf0cba9 (diff) | |
download | podman-aa197a65ff245f4d244968fd6010537a76a42e10.tar.gz podman-aa197a65ff245f4d244968fd6010537a76a42e10.tar.bz2 podman-aa197a65ff245f4d244968fd6010537a76a42e10.zip |
sort hc.Binds returned from compat api
Signed-off-by: Josh Patterson <josh.patterson@securityonionsolutions.com>
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/compat/containers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go index ae063dc9f..0b82c48f6 100644 --- a/pkg/api/handlers/compat/containers.go +++ b/pkg/api/handlers/compat/containers.go @@ -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 { |