5 月 222018
 

查询镜像

[root@swarm4 ~]# curl -XGET http://192.168.50.216:5000/v2/_catalog
{"repositories":["centos","opensuse","ubuntu"]}
[root@swarm4 ~]#

查询镜像版本

[root@swarm4 ~]# curl -XGET http://192.168.50.216:5000/v2/ubuntu/tags/list
{"name":"ubuntu","tags":["16.04","18.04"]}
[root@swarm4 ~]# curl -XGET http://192.168.50.216:5000/v2/centos/tags/list
{"name":"centos","tags":["6.9","7.4.1708","6.7","6.6"]}
[root@swarm4 ~]# curl -XGET http://192.168.50.216:5000/v2/opensuse/tags/list
{"name":"opensuse","tags":["42.3"]}
[root@swarm4 ~]#

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据