ctr push镜像的时候提示:ctr: content digest sha256:d7d9050c36d329e9be76984f4e7473ebc5a776f2b9f649d5f9323e868137a75e: not found
root@containerd:~# ctr i push --plain-http=true -u admin:dqWOW1Xt4mup 192.168.11.20/local-debug/busybox:1.35.0
index-sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094: waiting |--------------------------------------|
elapsed: 0.1 s total: 0.0 B (0.0 B/s)
ctr: content digest sha256:d7d9050c36d329e9be76984f4e7473ebc5a776f2b9f649d5f9323e868137a75e: not found
root@containerd:~# ctr i pull docker.io/library/busybox:1.35.0
docker.io/library/busybox:1.35.0: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094: exists |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:513877bbaebc5a0e079d03eeaaf57bc47b29d47eab9b2d500e436f280ba2c783: exists |++++++++++++++++++++++++++++++++++++++|
layer-sha256:db2e1e3b46c0af1ae524f68073dccd02b5b10a0388a7b3a3f1617ee996376c34: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:48af2784ec85ce2b8194c39b667bad46c5aac55704236a98777fe9c5bb98d241: exists |++++++++++++++++++++++++++++++++++++++|
elapsed: 11.6s total: 2.0 Mi (176.5 KiB/s)
unpacking linux/amd64 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
done: 69.08849ms
root@containerd:~# ctr i tag docker.io/library/busybox:1.35.0 192.168.11.20/local-debug/busybox:1.35.0
192.168.11.20/local-debug/busybox:1.35.0
root@containerd:~#
root@containerd:~#
root@containerd:~# ctr i push --plain-http=true -u admin:xxxxxx 192.168.11.20/local-debug/busybox:1.35.0
index-sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094: waiting |--------------------------------------|
elapsed: 0.1 s total: 0.0 B (0.0 B/s)
ctr: content digest sha256:d7d9050c36d329e9be76984f4e7473ebc5a776f2b9f649d5f9323e868137a75e: not found
root@containerd:~#
root@containerd:~#
root@containerd:~# ctr i ls -q
192.168.11.20/local-debug/busybox:1.35.0
docker.io/library/busybox:1.35.0
root@containerd:~#
下载镜像的时候增加--all-platforms
参数,譬如:ctr i pull --all-platforms docker.io/library/busybox:1.35.0
,然后重新推送
root@containerd:~#
root@containerd:~# ctr i rm 192.168.11.20/local-debug/busybox:1.35.0
192.168.11.20/local-debug/busybox:1.35.0
root@containerd:~# ctr i rm docker.io/library/busybox:1.35.0
docker.io/library/busybox:1.35.0
root@containerd:~# ctr i ls -q
root@containerd:~#
root@containerd:~# ctr i pull --all-platforms docker.io/library/busybox:1.35.0
docker.io/library/busybox:1.35.0: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094: exists |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:8aefa712e5b4eff1f7926e16543598cb92dbbfae1da4c749707611000573c979: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:8cd9c953d2a64decb75ca46b4cf22f6e2e3cd3ea8ab1257236a0c29ed3f7d2c1: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:513877bbaebc5a0e079d03eeaaf57bc47b29d47eab9b2d500e436f280ba2c783: exists |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:2838c2989badb047db8ac19a57518de415464bb7fb6a93924485723bb0d5b1e0: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f990f8a28b8117154e57cde4f4aa15facf290d0912fda9173409f7c9b7ad30f9: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:05beb05d13210aefba7585a22e44fe4fb3c963871a2afaa58e0e1e4330602634: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:224406de977cbba7378d749a38a87b722d09738f1aa2dec57c49951dc20c859e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f5e227aa2b42734e4acf07beaa9980690000a88407be4fa9b36f320b62757adf: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f7a0ef48e5a5366c6b0c24f968a99082e2d97e96f33ea0617974caabbf9043bc: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d7d9050c36d329e9be76984f4e7473ebc5a776f2b9f649d5f9323e868137a75e: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:db2e1e3b46c0af1ae524f68073dccd02b5b10a0388a7b3a3f1617ee996376c34: exists |++++++++++++++++++++++++++++++++++++++|
config-sha256:48af2784ec85ce2b8194c39b667bad46c5aac55704236a98777fe9c5bb98d241: exists |++++++++++++++++++++++++++++++++++++++|
layer-sha256:e7f7023b82bec856be511af1dc60f93aef2d6bf2f5f27849710d912725a2e8c5: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:6d017d5c991abc40ce86ddeb9c4f5b59cf39bd87777cfa67a2eead9f06077d44: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:b7bb2b62dd84feca80a737337e99b777d2c11d361a09caf54384b575f9d6b7fb: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:727a36c25f4d0551951d5078e3346e4fff32560d737398d15def41c2b6a50a50: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:c6f6c0137466e08a6c716a36e555ccde2ed9094cbb9048a7535bbf0232fbc879: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:ae872f21b57780b28831920c8d62f4ab9e5e92afe632ff0402786d49337aaa40: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:8efa25f4ef5cee067469977d319254414c5292cb3dc62e9f178df1465753a5e4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:cb300da5c300405b14faed616992ef14a76c344eb4d7cc318606f4937565a1d6: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:1975d8f92f2b2b4b1a2a085ab64275730371cb4aa21159772354cba89fcb4428: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:513468b518d06265f818797b9ad3e6db718adfc9a785f51f22a5efd6bba11025: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:12746cf459ad63ea90c5c715745d728d8288f42221bebdf3848d0c69daf5f163: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:61883c5a9e98b812c0e2798abf2bb276ff554ae3a97c8a62e12da71d683285e5: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:47aa6641be972f562a486cfbfb9c27940efafe8a915a79b6de0e93e286e161f9: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:e137de9049627f8e3009d188eecd44be1718227ec2843bb2e0503fa3b32af9a3: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:f1bffd065926256daf56bddbb6dea3760441b9dd84ff00e250874305881bc170: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:cd930e5bb1b90420f16985b9db1ecf1f63cbbaaf05721c3ab291d06d0c689b7b: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:4082de729fc503d6152850469d7895de81b80e1eb4e2768eb5dbd16d50dc52d3: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:92b4fe90e7125786e94fe5f90e714b7997829fd4e9036a4fc8ccc201ebef0625: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 16.5s total: 15.2 M (941.7 KiB/s)
unpacking linux/amd64 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/arm/v5 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/arm/v6 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/arm/v7 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/arm64/v8 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/386 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/mips64le sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/ppc64le sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/riscv64 sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
unpacking linux/s390x sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094...
done: 525.213059ms
root@containerd:~#
root@containerd:~#
root@containerd:~# ctr i tag docker.io/library/busybox:1.35.0 192.168.11.20/local-debug/busybox:1.35.0
192.168.11.20/local-debug/busybox:1.35.0
root@containerd:~#
root@containerd:~# ctr i ls -q
192.168.11.20/local-debug/busybox:1.35.0
docker.io/library/busybox:1.35.0
root@containerd:~# ctr i push --plain-http=true -u admin:xxxxxx 192.168.11.20/local-debug/busybox:1.35.0
index-sha256:7ae8447f3a7f5bccaa765926f25fc038e425cf1b2be6748727bbea9a13102094: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:8aefa712e5b4eff1f7926e16543598cb92dbbfae1da4c749707611000573c979: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:513877bbaebc5a0e079d03eeaaf57bc47b29d47eab9b2d500e436f280ba2c783: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:d7d9050c36d329e9be76984f4e7473ebc5a776f2b9f649d5f9323e868137a75e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:2838c2989badb047db8ac19a57518de415464bb7fb6a93924485723bb0d5b1e0: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:05beb05d13210aefba7585a22e44fe4fb3c963871a2afaa58e0e1e4330602634: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:8cd9c953d2a64decb75ca46b4cf22f6e2e3cd3ea8ab1257236a0c29ed3f7d2c1: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f990f8a28b8117154e57cde4f4aa15facf290d0912fda9173409f7c9b7ad30f9: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:224406de977cbba7378d749a38a87b722d09738f1aa2dec57c49951dc20c859e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f7a0ef48e5a5366c6b0c24f968a99082e2d97e96f33ea0617974caabbf9043bc: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f5e227aa2b42734e4acf07beaa9980690000a88407be4fa9b36f320b62757adf: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:61883c5a9e98b812c0e2798abf2bb276ff554ae3a97c8a62e12da71d683285e5: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:48af2784ec85ce2b8194c39b667bad46c5aac55704236a98777fe9c5bb98d241: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:513468b518d06265f818797b9ad3e6db718adfc9a785f51f22a5efd6bba11025: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:47aa6641be972f562a486cfbfb9c27940efafe8a915a79b6de0e93e286e161f9: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:cd930e5bb1b90420f16985b9db1ecf1f63cbbaaf05721c3ab291d06d0c689b7b: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:6d017d5c991abc40ce86ddeb9c4f5b59cf39bd87777cfa67a2eead9f06077d44: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:cb300da5c300405b14faed616992ef14a76c344eb4d7cc318606f4937565a1d6: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:727a36c25f4d0551951d5078e3346e4fff32560d737398d15def41c2b6a50a50: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:ae872f21b57780b28831920c8d62f4ab9e5e92afe632ff0402786d49337aaa40: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:92b4fe90e7125786e94fe5f90e714b7997829fd4e9036a4fc8ccc201ebef0625: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 1.5 s total: 21.7 K (14.4 KiB/s)
root@containerd:~#