Remove default filter from ctr
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
e833da1356
commit
e4c6bf3b5e
@ -56,17 +56,6 @@ var imagesListCommand = cli.Command{
|
||||
|
||||
imageStore := client.ImageService()
|
||||
cs := client.ContentStore()
|
||||
|
||||
if len(filters) == 0 {
|
||||
filters = append(filters, `labels.containerd."io/checkpoint"!=true`)
|
||||
} else {
|
||||
for _, f := range filters {
|
||||
if !strings.Contains(f, `labels.containerd."io/checkpoint"`) {
|
||||
f += `,labels.containerd."io/checkpoint"!=true`
|
||||
_ = f // ignore error: ineffectual assignment to f
|
||||
}
|
||||
}
|
||||
}
|
||||
imageList, err := imageStore.List(ctx, filters...)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to list images")
|
||||
|
Loading…
Reference in New Issue
Block a user