如何列出推送到microk8s内置注册表的图片?

问题描述 投票:0回答:1

我安装了microk8s,并启用了注册表插件,我能够将docker镜像推送到这个注册表,并且能够在部署中使用这些镜像。

但我想列出已经推送到这个注册表的镜像。我如何才能做到这一点?是否有一个API?

docker kubernetes docker-registry microk8s
1个回答
1
投票

使用命令 microk8s ctr images list. 要了解更多信息,请使用 --help

microk8s ctr images --help
NAME:
   ctr images - manage images

USAGE:
   ctr images command [command options] [arguments...]

COMMANDS:
     check       check that an image has all content available locally
     export      export an image
     import      import images
     list, ls    list images known to containerd
     pull        pull an image from a remote
     push        push an image to a remote
     remove, rm  remove one or more images by reference
     label       set and clear labels for an image

OPTIONS:
   --help, -h  show help

0
投票

试试这个。

microk8s ctr images ls

0
投票

我发现可以通过HTTP GET在这个地址:http:/:32000v2_catalog中列出注册表的图像。

它将以json响应的方式返回图片。

© www.soinside.com 2019 - 2024. All rights reserved.