Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.2.1] WARN[0000] failed to get unpacked size of image #2058

Closed
sacesare opened this issue Feb 28, 2023 · 13 comments · Fixed by #2245
Closed

[v1.2.1] WARN[0000] failed to get unpacked size of image #2058

sacesare opened this issue Feb 28, 2023 · 13 comments · Fixed by #2245
Labels
bug Something isn't working regression
Milestone

Comments

@sacesare
Copy link

Description

Regression for v1.2.1, linux (alpine).
nerdctl image list returns:
WARN[0000] failed to get unpacked size of image "docker.io/bitnami/mariadb:10.6.12-debian-11-r3" for platform "linux/amd64" error="snapshot sha256:81aa702947472a10111529ebc28392ccb5501e6dc04da00686766b4f89f595ab does not exist: not found"
for
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE bitnami/mariadb 10.6.12-debian-11-r3 7883c2256b1d 10 days ago linux/amd64 0.0 B 107.6 MiB
v1.2.0 work as expected, without any warnings.

Steps to reproduce the issue

  1. nerdctl image list

Describe the results you received and expected

WARN[0000] failed to get unpacked size of image "docker.io/bitnami/mariadb:10.6.12-debian-11-r3" for platform "linux/amd64" error="snapshot sha256:81aa702947472a10111529ebc28392ccb5501e6dc04da00686766b4f89f595ab does not exist: not found"

What version of nerdctl are you using?

v1.2.1

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

@sacesare sacesare added the kind/unconfirmed-bug-claim Unconfirmed bug claim label Feb 28, 2023
@AkihiroSuda AkihiroSuda added bug Something isn't working and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels Feb 28, 2023
@AkihiroSuda
Copy link
Member

Can't repro the issue locally. Tried on Ubuntu 22.10 and ArchLinux.

Could you provide nerdctl info?

@AkihiroSuda AkihiroSuda added the status/needs-more-information Needs more information from OP label Feb 28, 2023
@sacesare
Copy link
Author

sacesare commented Mar 1, 2023

nerdctl info:

Client:
 Namespace:     k8s.io
 Debug Mode:    false

Server:
 Server Version: v1.5.17
 Storage Driver: overlayfs
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Log: fluentd journald json-file syslog
  Storage: native overlayfs zfs
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.15.90-0-lts
 Operating System: Alpine Linux v3.17
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.838GiB
 Name: localhost
 ID: e78861d3-26c6-48aa-a760-660a72c37f31

one little notice, I'm using zfs snapshotter for containerd:

[plugins."io.containerd.grpc.v1.cri".containerd]
snapshotter = "zfs"

but that not influence v1.2.0 version of nerdctl, which work without warnings.
And another notice. That kind of warning:
WARN[0000] failed to get unpacked size of image ...does not exist: not found
displayed for every single image I have in containerd, but with different snapshot hashes obviously.
nerdctl image history 7883c2256b1d , for example, results:

FATA[0000] 1 errors:
failed to get stat: snapshot sha256:81aa702947472a10111529ebc28392ccb5501e6dc04da00686766b4f89f595ab does not exist: not found

It's strange but v1.2.0 show same error for the same command, but it doesn't have warnings in list).
It would be useful to add, that problem exists only for first layer/snapshot of images -displayed hash is always hash of first image layer.

@sacesare
Copy link
Author

sacesare commented Mar 2, 2023

Strange, it seems nerdctl not use declared snapshotter from containerd config...
containerd itself running with snapshotter = "zfs". But for nerdctl I need to set snapshotter= "zfs" second time in nerdctl.toml , then all work as expected, without warning or errors, even v1.2.1.

@djdongjin
Copy link
Member

It might be the case (based on the observation, I'm not sure) that nerdctl has its own default snapshotter, if not set otherwise.

The expected behavior might be, if explicitly set in nerdctl (either via config/flag/env), nerdctl should use that; if not set, nerdctl uses containerd's configed/default snapshotter?

@AkihiroSuda
Copy link
Member

containerd's configed/default snapshotter?

containerd (daemon) has no concept of the default snapshotter.
The CRI plugin has, though, it is irrelevant to nerdctl.

@sacesare
Copy link
Author

sacesare commented Mar 2, 2023

So... nerdctl not related to cri, that used by containerd itself?
Strange, nerdctl related to containerd but not related to containerd runtime config- cri The default snapshotter ?
crictl, for example, use containerd configured snapshotter without problems.
I need to have both tools (nerdctl,crictl) for use with k8s deployment, is nerdctl docker/containerd only ?
Why nerdctl use cni plugins, but not cri at all ?

@fahedouch
Copy link
Member

fahedouch commented Mar 2, 2023

So... nerdctl not related to cri, that used by containerd itself?

Yes nerdctl is not related to cri
cri is the interface between containerd and k8s kubelet ; cri client is used by the kubelet to communicate with containerd cri API
nerdctl is a different client for containerd daemon

@sacesare
Copy link
Author

sacesare commented Mar 3, 2023

IMHO, cri/cni both are plugins implemented by containerd (part of containerd, if you like), so what is difference?
It would be useful if client for containerd take a notice of current/runtime containerd configuration, including plugins.

@antoineco
Copy link

I can reproduce this issue when I pull an image with --all-plaforms, but not when I pull each platform individually:

# export CONTAINERD_ADDRESS=/var/run/docker/containerd/containerd.sock
# /usr/local/libexec/nerdctl/nerdctl version
Client:
 Version:       v1.2.1
 OS/Arch:       linux/amd64
 Git commit:    a0bbfd75ba92bcb11ac6059bf4f6f4e50c6da0b8
 buildctl:
  Version:      v0.11.3
  GitCommit:    4ddee42a32aac4cd33bf9c2be4c87c2ffd34747b

Server:
 containerd:
  Version:      v1.6.18
  GitCommit:    2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:      1.1.4
  GitCommit:    5fd4c4d144137e991c4acebb2146ab1483a97925

Pull for my current platform:

# /usr/local/libexec/nerdctl/nerdctl image pull nginx
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:3f01b0094e21f7d55b9eb7179d01c49fdf9c3e1e3419d315b81a9e0bae1b6a90: done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:448a08f1d2f94e8db6db9286fd77a3a4f3712786583720a12f1648abb8cace25:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8db4caa19df89c606d39076b27fe163e1f37516f889ff5bfee1fce03056bb6b0:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9c2d6be5a61d1ad44be8e5e93a5800572cff95601147c45eaa9ecf0d4cb66f83:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:15a97cf85bb88997d139f86b2be23f99175d51d7e45a4c4b04ec0cbdbb56a63b:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:6b7e4a5c7c7ad54c76bc4861f476f3b70978beede9e752015202dd223383602b:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9e3ea8720c6de96cc9ad544dddc695a3ab73f5581c5d954e0504cc4f80fb5e5c:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:bf36b64666794f28ea5c3d4d75add149c04e849342e3d45ca31aac9cf4715dd1:    done           |++++++++++++++++++++++++++++++++++++++|
elapsed: 19.7s                                                                    total:  54.4 M (2.8 MiB/s)
# /usr/local/libexec/nerdctl/nerdctl image ls
REPOSITORY    TAG       IMAGE ID        CREATED           PLATFORM       SIZE         BLOB SIZE
nginx         latest    480868e8c8c7    55 seconds ago    linux/amd64    149.8 MiB    54.4 MiB

Pull for a single platform, different from my current platform:

# /usr/local/libexec/nerdctl/nerdctl image pull --platform=linux/arm64 nginx
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:9b920e938111710c2768b31699aac9d1ae80ab6284454e8a9ff42e887fa1db31: done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:6405d9b26fafcc65baf6cbacd0211bd624632da10d18cae7dc42220a00eb7655:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:cb9192afe1d072068ae3067129c76c7c2921b70e09095412610786735f77bd7c:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:4b1895c88e3733ff36e27a63e76094aef48fd518e9f13ac8bca9a39db2074f76:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:696a1263847bca63d17d42c35c8ac8cb5c2374d31bb97e4d943ae42ca4dcb50f:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:4f04dadf04071173baf17ade9d5bdf81f706b7e7dab287ad9ac9d99f0f5bfef5:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:93b39cd2d2c290e2e556c703805a2449c6a94f192286367ed4c620d9dbbc2f1e:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:b5d25b35c1dbfa256bea3dd164b2048d6c7f8074a555213c493c36f07bf4c559:    done           |++++++++++++++++++++++++++++++++++++++|
elapsed: 17.8s                                                                    total:  53.0 M (3.0 MiB/s)
# /usr/local/libexec/nerdctl/nerdctl image ls
REPOSITORY    TAG       IMAGE ID        CREATED          PLATFORM          SIZE         BLOB SIZE
nginx         latest    480868e8c8c7    3 minutes ago    linux/amd64       149.8 MiB    54.4 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/arm64/v8    142.9 MiB    53.0 MiB

... do the same for all supported platforms, just to ensure the issue isn't caused by a specific image ...

# /usr/local/libexec/nerdctl/nerdctl image ls
REPOSITORY    TAG       IMAGE ID        CREATED           PLATFORM          SIZE         BLOB SIZE
nginx         latest    480868e8c8c7    10 minutes ago    linux/amd64       149.8 MiB    54.4 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/arm/v5      134.5 MiB    51.2 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/arm/v7      119.2 MiB    48.1 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/arm64/v8    142.9 MiB    53.0 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/386         152.9 MiB    56.2 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/mips64le    156.3 MiB    52.6 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/ppc64le     192.9 MiB    59.8 MiB
nginx         latest    480868e8c8c7    10 minutes ago    linux/s390x       148.3 MiB    52.5 MiB

Delete the image, then pull all platforms at once:

# /usr/local/libexec/nerdctl/nerdctl image rm nginx
Untagged: docker.io/library/nginx:latest@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43
Deleted: sha256:8553b91047dad45bedc292812586f1621e0a464a09a7a7c2ce6ac5f8ba2535d7
Deleted: sha256:a29cc9587af6488ae0cbb962ecbe023d347908cc62ca5d715af06e54ccaa9e36
Deleted: sha256:6bc8ae8fb3cf0909b3d9c2e74f6cabe16e6a2322c52cec76fbaecaef47006f1d
Deleted: sha256:5684be535bf11cb9ad1a57b51085f36d84ae8361eabc2b4c2ba9a83e8b084b20
Deleted: sha256:93ee76f39c974e4f819e632149c002d6f509aadc5995ec6523a96b337751c8ed
Deleted: sha256:1040838fe30e6f26d31bde96c514f47ee4bf727b3f1c3c7b045ea3891c1c2150
# /usr/local/libexec/nerdctl/nerdctl image pull --all-platforms nginx
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d9a557b402bb710cf656080a9c0188e4c695633330ed5d8774331a30170a327c: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d08b58cfba6a9ec21b0d323b42332e07b35b74c914998005efe2fbada0352298: done           |++++++++++++++++++++++++++++++++++++++|
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d9a557b402bb710cf656080a9c0188e4c695633330ed5d8774331a30170a327c: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d08b58cfba6a9ec21b0d323b42332e07b35b74c914998005efe2fbada0352298: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:9b920e938111710c2768b31699aac9d1ae80ab6284454e8a9ff42e887fa1db31: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:3f01b0094e21f7d55b9eb7179d01c49fdf9c3e1e3419d315b81a9e0bae1b6a90: done           |++++++++++++++++++++++++++++++++++++++|
...
elapsed: 29.8s                                                                    total:  399.5  (13.4 MiB/s)
# /usr/local/libexec/nerdctl/nerdctl image ls
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/amd64"  error="snapshot sha256:6b33c8bf5207fd88b6e0f942c230c59477990205dbed0ae41d54b5b29ed1051d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v5"  error="snapshot sha256:b020b2a698893ecaee20bec26a790dcbbab5371120f5e5972e65cec996812655 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v7"  error="snapshot sha256:0f27f8a2024b4345cdc0ec75a94d47ba898315b7f4c37c7916a450cd3205b95f does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm64/v8"  error="snapshot sha256:cb8dc76c407372355cfe9455441210e96f06aff9bd4fcea99ac81587eb398c39 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/386"  error="snapshot sha256:d68eb78786d4ce773c5f0e686284e9198d69f09f4193a766ba2e195bd79ade0d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/mips64le"  error="snapshot sha256:dda9836320a518cabefa8f24033e0fed297db5212e99867ca242faf4470e84de does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/ppc64le"  error="snapshot sha256:5b4c8d1ebf4f5b40047963ade5fd926bfa43fce62a8d87bdd9cdf3b32d60299e does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/s390x"  error="snapshot sha256:0938cb1bc2fb9d6b3f0d2e1ab80d7a60eb88f1a1cdcb8b2f6eb574cefbaa350c does not exist: not found"
REPOSITORY    TAG       IMAGE ID        CREATED          PLATFORM          SIZE     BLOB SIZE
nginx         latest    480868e8c8c7    2 minutes ago    linux/amd64       0.0 B    54.4 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/arm/v5      0.0 B    51.2 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/arm/v7      0.0 B    48.1 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/arm64/v8    0.0 B    53.0 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/386         0.0 B    56.2 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/mips64le    0.0 B    52.6 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/ppc64le     0.0 B    59.8 MiB
nginx         latest    480868e8c8c7    2 minutes ago    linux/s390x       0.0 B    52.5 MiB

@AkihiroSuda AkihiroSuda removed the status/needs-more-information Needs more information from OP label May 11, 2023
@AkihiroSuda AkihiroSuda added this to the v1.4.0 (tentative) milestone May 11, 2023
@antoineco
Copy link

The issue still exists in nerdctl v1.3.1

# ./nerdctl version
Client:
 Version:       v1.3.1
 OS/Arch:       linux/amd64
 Git commit:    b224b280ff3086516763c7335fc0e0997aca617a
 buildctl:
  Version:      v0.11.3
  GitCommit:    4ddee42a32aac4cd33bf9c2be4c87c2ffd34747b

Server:
 containerd:
  Version:      v1.6.18
  GitCommit:    2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:      1.1.4
  GitCommit:    5fd4c4d144137e991c4acebb2146ab1483a97925
# ./nerdctl image rm nginx
Untagged: docker.io/library/nginx:latest@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43
Deleted: sha256:8553b91047dad45bedc292812586f1621e0a464a09a7a7c2ce6ac5f8ba2535d7
Deleted: sha256:a29cc9587af6488ae0cbb962ecbe023d347908cc62ca5d715af06e54ccaa9e36
Deleted: sha256:6bc8ae8fb3cf0909b3d9c2e74f6cabe16e6a2322c52cec76fbaecaef47006f1d
Deleted: sha256:5684be535bf11cb9ad1a57b51085f36d84ae8361eabc2b4c2ba9a83e8b084b20
Deleted: sha256:93ee76f39c974e4f819e632149c002d6f509aadc5995ec6523a96b337751c8ed
Deleted: sha256:1040838fe30e6f26d31bde96c514f47ee4bf727b3f1c3c7b045ea3891c1c2150
# ./nerdctl image pull --all-platforms nginx
...
elapsed: 29.5s                                                                    total:  427.4  (14.5 MiB/s)
# ./nerdctl image ls
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/amd64"  error="snapshot sha256:6b33c8bf5207fd88b6e0f942c230c59477990205dbed0ae41d54b5b29ed1051d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v5"  error="snapshot sha256:b020b2a698893ecaee20bec26a790dcbbab5371120f5e5972e65cec996812655 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v7"  error="snapshot sha256:0f27f8a2024b4345cdc0ec75a94d47ba898315b7f4c37c7916a450cd3205b95f does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm64/v8"  error="snapshot sha256:cb8dc76c407372355cfe9455441210e96f06aff9bd4fcea99ac81587eb398c39 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/386"  error="snapshot sha256:d68eb78786d4ce773c5f0e686284e9198d69f09f4193a766ba2e195bd79ade0d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/mips64le"  error="snapshot sha256:dda9836320a518cabefa8f24033e0fed297db5212e99867ca242faf4470e84de does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/ppc64le"  error="snapshot sha256:5b4c8d1ebf4f5b40047963ade5fd926bfa43fce62a8d87bdd9cdf3b32d60299e does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/s390x"  error="snapshot sha256:0938cb1bc2fb9d6b3f0d2e1ab80d7a60eb88f1a1cdcb8b2f6eb574cefbaa350c does not exist: not found"
REPOSITORY    TAG       IMAGE ID        CREATED               PLATFORM          SIZE     BLOB SIZE
nginx         latest    480868e8c8c7    About a minute ago    linux/amd64       0.0 B    54.4 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/arm/v5      0.0 B    51.2 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/arm/v7      0.0 B    48.1 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/arm64/v8    0.0 B    53.0 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/386         0.0 B    56.2 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/mips64le    0.0 B    52.6 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/ppc64le     0.0 B    59.8 MiB
nginx         latest    480868e8c8c7    About a minute ago    linux/s390x       0.0 B    52.5 MiB

@antoineco
Copy link

Pulling an explicit platform after pulling all images makes the warning disappear for that specific platform.

# ./nerdctl image pull --platform=linux/amd64 nginx
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    exists         |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:3f01b0094e21f7d55b9eb7179d01c49fdf9c3e1e3419d315b81a9e0bae1b6a90: exists         |++++++++++++++++++++++++++++++++++++++|
config-sha256:448a08f1d2f94e8db6db9286fd77a3a4f3712786583720a12f1648abb8cace25:   exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8db4caa19df89c606d39076b27fe163e1f37516f889ff5bfee1fce03056bb6b0:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:15a97cf85bb88997d139f86b2be23f99175d51d7e45a4c4b04ec0cbdbb56a63b:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9c2d6be5a61d1ad44be8e5e93a5800572cff95601147c45eaa9ecf0d4cb66f83:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9e3ea8720c6de96cc9ad544dddc695a3ab73f5581c5d954e0504cc4f80fb5e5c:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:6b7e4a5c7c7ad54c76bc4861f476f3b70978beede9e752015202dd223383602b:    exists         |++++++++++++++++++++++++++++++++++++++|
layer-sha256:bf36b64666794f28ea5c3d4d75add149c04e849342e3d45ca31aac9cf4715dd1:    exists         |++++++++++++++++++++++++++++++++++++++|
elapsed: 7.0 s                                                                    total:   0.0 B (0.0 B/s)
# ./nerdctl image ls
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v5"  error="snapshot sha256:b020b2a698893ecaee20bec26a790dcbbab5371120f5e5972e65cec996812655 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v7"  error="snapshot sha256:0f27f8a2024b4345cdc0ec75a94d47ba898315b7f4c37c7916a450cd3205b95f does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm64/v8"  error="snapshot sha256:cb8dc76c407372355cfe9455441210e96f06aff9bd4fcea99ac81587eb398c39 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/386"  error="snapshot sha256:d68eb78786d4ce773c5f0e686284e9198d69f09f4193a766ba2e195bd79ade0d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/mips64le"  error="snapshot sha256:dda9836320a518cabefa8f24033e0fed297db5212e99867ca242faf4470e84de does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/ppc64le"  error="snapshot sha256:5b4c8d1ebf4f5b40047963ade5fd926bfa43fce62a8d87bdd9cdf3b32d60299e does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/s390x"  error="snapshot sha256:0938cb1bc2fb9d6b3f0d2e1ab80d7a60eb88f1a1cdcb8b2f6eb574cefbaa350c does not exist: not found"
REPOSITORY    TAG       IMAGE ID        CREATED          PLATFORM          SIZE         BLOB SIZE
nginx         latest    480868e8c8c7    3 minutes ago    linux/amd64       149.8 MiB    54.4 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/arm/v5      0.0 B        51.2 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/arm/v7      0.0 B        48.1 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/arm64/v8    0.0 B        53.0 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/386         0.0 B        56.2 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/mips64le    0.0 B        52.6 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/ppc64le     0.0 B        59.8 MiB
nginx         latest    480868e8c8c7    3 minutes ago    linux/s390x       0.0 B        52.5 MiB

Notice that the size of my platform is now 149.8 MiB, and no longer 0.0B.

@antoineco
Copy link

The issue can also be reproduced by simply passing multiple platforms on the command line.

# ./nerdctl image pull --platform=linux/amd64 --platform=linux/arm/v7 --platform=linux/arm/v5 nginx
docker.io/library/nginx:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:573aeafa0c5883bb8f93516fe904b47057b4fba547ad310c6967f563e5a2bb07: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:bc4cb92540db42f21dd806c4451f33b623a9b6441c882e8554325f3a3702da76: done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:3f01b0094e21f7d55b9eb7179d01c49fdf9c3e1e3419d315b81a9e0bae1b6a90: done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8db4caa19df89c606d39076b27fe163e1f37516f889ff5bfee1fce03056bb6b0:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:bf36b64666794f28ea5c3d4d75add149c04e849342e3d45ca31aac9cf4715dd1:    done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:448a08f1d2f94e8db6db9286fd77a3a4f3712786583720a12f1648abb8cace25:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9e3ea8720c6de96cc9ad544dddc695a3ab73f5581c5d954e0504cc4f80fb5e5c:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:15a97cf85bb88997d139f86b2be23f99175d51d7e45a4c4b04ec0cbdbb56a63b:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:6b7e4a5c7c7ad54c76bc4861f476f3b70978beede9e752015202dd223383602b:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:9c2d6be5a61d1ad44be8e5e93a5800572cff95601147c45eaa9ecf0d4cb66f83:    done           |++++++++++++++++++++++++++++++++++++++|
...
elapsed: 20.2s                                                                    total:  153.7  (7.6 MiB/s)
# ./nerdctl image ls
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/amd64"  error="snapshot sha256:6b33c8bf5207fd88b6e0f942c230c59477990205dbed0ae41d54b5b29ed1051d does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v5"  error="snapshot sha256:b020b2a698893ecaee20bec26a790dcbbab5371120f5e5972e65cec996812655 does not exist: not found"
WARN[0000] failed to get unpacked size of image "docker.io/library/nginx:latest" for platform "linux/arm/v7"  error="snapshot sha256:0f27f8a2024b4345cdc0ec75a94d47ba898315b7f4c37c7916a450cd3205b95f does not exist: not found"
REPOSITORY    TAG       IMAGE ID        CREATED           PLATFORM        SIZE     BLOB SIZE
nginx         latest    480868e8c8c7    18 seconds ago    linux/amd64     0.0 B    54.4 MiB
nginx         latest    480868e8c8c7    18 seconds ago    linux/arm/v5    0.0 B    51.2 MiB
nginx         latest    480868e8c8c7    18 seconds ago    linux/arm/v7    0.0 B    48.1 MiB

@AkihiroSuda
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants