mirror of
https://github.com/containers/podman.git
synced 2025-10-14 17:55:51 +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 {
|
||||
case errors.Is(err, types.ErrLoadError):
|
||||
continue
|
||||
// Container could have been removed since listing
|
||||
case errors.Is(err, types.ErrContainerUnknown):
|
||||
continue
|
||||
case err != nil:
|
||||
return nil, err
|
||||
default:
|
||||
|
Reference in New Issue
Block a user