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 ~]#