Skip to content

Commit

Permalink
Do not hard error if containers are gone
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <[email protected]>
  • Loading branch information
apostasie committed Jul 5, 2024
1 parent bc24aa9 commit 1a870e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/container/run_mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package container
import (
"context"
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
Expand Down Expand Up @@ -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()]
Expand Down

0 comments on commit 1a870e8

Please sign in to comment.