Skip to content

pinned is still false after ctr label image io.cri-containerd.pinned=pinned #9328

@yuqitao

Description

@yuqitao

Description

I want pin an image which I have imported, so I use ctr -n k8s.io images label imageName io.cri-containerd.pinned=pinned.
But crictl inspecti imageName still return pinned=false.

CRIService get ImageUpdate event,the image in store does not been updated because these logic:

if oldID == img.ID {

Steps to reproduce the issue

  1. ctr -n k8s.io images label docker.io/library/redis:2.8.23 io.cri-containerd.pinned=pinned
  2. crictl inspecti docker.io/library/redis:2.8.23

Describe the results you received and expected

crictl inspecti imageName still return pinned=true

What version of containerd are you using?

v1.7.8

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions