uber / kraken

P2P Docker registry capable of distributing TBs of data in seconds
Apache License 2.0
6.14k stars 423 forks source link

Support containerd in preload endpoint #324

Closed evelynl94 closed 2 years ago

evelynl94 commented 2 years ago

Added support to reload containerd images.

Tested

$ curl "localhost:16002/preload/tags/library%2fgolang:1.14"
$ docker images | grep golang
127.0.0.1:16000/library/golang                                                  1.14                            21a5635903d6        17 months ago       810.6 MB
$ curl "localhost:16002/preload/tags/library%2fgolang:1.14?runtime=containerd&namespace=k8s.io"
$ ctr -n k8s.io i ls
REF                                 TYPE                                                 DIGEST                                                                  SIZE      PLATFORMS   LABELS
127.0.0.1:16000/library/golang:1.14 application/vnd.docker.distribution.manifest.v2+json sha256:6a39a02f74ffee82a169f2d836134236dc6f69e5946779da13deb3c7c6fedafd 298.4 MiB linux/amd64 -