mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Merge pull request #17190 from vrothberg/ps-optimizations
ps: do not create copy of container config
This commit is contained in:
@ -143,7 +143,7 @@ func ListContainerBatch(rt *libpod.Runtime, ctr *libpod.Container, opts entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
conConfig = c.Config()
|
conConfig = c.ConfigNoCopy()
|
||||||
conState, err = c.State()
|
conState, err = c.State()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to obtain container state: %w", err)
|
return fmt.Errorf("unable to obtain container state: %w", err)
|
||||||
|
Reference in New Issue
Block a user