mirror of
https://github.com/containers/podman.git
synced 2025-10-15 18:23:30 +08:00
Ignore missing containers when calling GetExternalContainerLists
Race condition between listing containers and figuring out if it is a buildah container. Fixe: https://github.com/containers/podman/issues/23492 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -122,6 +122,9 @@ func GetExternalContainerLists(runtime *libpod.Runtime) ([]entities.ListContaine
|
|||||||
switch {
|
switch {
|
||||||
case errors.Is(err, types.ErrLoadError):
|
case errors.Is(err, types.ErrLoadError):
|
||||||
continue
|
continue
|
||||||
|
// Container could have been removed since listing
|
||||||
|
case errors.Is(err, types.ErrContainerUnknown):
|
||||||
|
continue
|
||||||
case err != nil:
|
case err != nil:
|
||||||
return nil, err
|
return nil, err
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user