Skip to content

import image which no tag will not display by ctr #4474

@yylt

Description

@yylt

Description
In the docker, Image has only hash value, example:

$ sudo docker images
REPOSITORY                                                        TAG                 IMAGE ID            CREATED             SIZE
<none>                                                               <none>                  6308a9db5272        5 hours ago         312MB

when use ctr to import the image, there are no any error, but 'ctr i ls` can not find this image

Steps to reproduce the issue:

  1. docker save -o tmp.tar 621ba461ce0f
  2. ctr i import tmp.tar
  3. ctr i ls

Describe the results you received:
ctr i ls display nothing

Describe the results you expected:
should has result, like:

# ctr i ls
REF                                                                     TYPE                                                 DIGEST                                                                  SIZE      PLATFORMS   LABELS     
sha256:6308a9db5272754bf7928f2d364e89482653e4aa4a7898e76333b0b12fa2c428 application/vnd.docker.distribution.manifest.v2+json sha256:25d509ac82512d68448c4a6adcdbcf42eb6a3d3be01992af8ea5b556f8db9929 306.7 MB linux/amd64 

Output of containerd --version:

v1.3.7

Any other relevant information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions