如何在不安全的registry中列出泊坞窗图像

我在同一本地networking中的另一台服务器上设置了一个不安全的registry。 有没有办法轻松列出不安全的registry上可用的图像?

我不认为有直接调用registryAPI的另一种方法

$ curl http://localhost:5000/v2/_catalog {"repositories":["myfirstimage","mysecondimage"]} $ curl http://localhost:5000/v2/myfirstimage/tags/list {"name":"myfirstimage","tags":["latest","toto"]} 

对于完整的列表,使用jq :

 for repository in $(curl -s http://localhost:5000/v2/_catalog | jq -r '.repositories[]'); do curl -s http://localhost:5000/v2/${repository}/tags/list | jq -r '(.name + ":" + .tags[])' done myfirstimage:latest myfirstimage:toto mysecondimage:latest