diff --git a/pkg/cmd/container/run_mount.go b/pkg/cmd/container/run_mount.go index 3a53c8c6f70..a1a17601094 100644 --- a/pkg/cmd/container/run_mount.go +++ b/pkg/cmd/container/run_mount.go @@ -19,6 +19,7 @@ package container import ( "context" "encoding/json" + "errors" "fmt" "os" "path/filepath" @@ -307,6 +308,9 @@ func generateMountOpts(ctx context.Context, client *containerd.Client, ensuredIm for _, c := range containers { ls, err := c.Labels(ctx) if err != nil { + if errors.Is(err, errdefs.ErrNotFound) { + continue + } return nil, nil, nil, err } _, idMatch := vfSet[c.ID()]