curl 'http://store.onlyharbor.com/api/repositories/boss/crm/tags?detail=1'
-H 'Connection: keep-alive'
-H 'Pragma: no-cache'
-H 'Cache-Control: no-cache'
-H 'Accept: application/json, text/plain, */*'
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'
-H 'Referer: http://store.onlyharbor.com/harbor/tags/7/boss%2Fstudent'
-H 'Accept-Language: zh-CN,zh;q=0.9'
-H 'Cookie: beegosessionID=439c3c88e77448015d8e02bef094bd1d'
--compressed
--insecure >crm.txt
cat crm.txt | grep tag |tr -d " " |sort |uniq|grep -v 2020| cut -d'"' -f4 >crm-end.txt
cat crm.txt | grep name |tr -d " " |sort |uniq|grep -v 2020| cut -d'"' -f4 >crm-end.txt
for i in `cat crm-end.txt`;do curl "http://store.onlyharbor.com/api/repositories/boss/crm/tags/$i"
-X 'DELETE'
-H 'Connection: keep-alive'
-H 'Pragma: no-cache'
-H 'Cache-Control: no-cache'
-H 'Accept: application/json, text/plain, */*'
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'
-H 'Origin: http://store.onlyharbor.com'
-H 'Referer: http://store.onlyharbor.com/harbor/tags/7/boss%2Ffrontend'
-H 'Accept-Language: zh-CN,zh;q=0.9'
-H 'Cookie: beegosessionID=439c3c88e77448015d8e02bef094bd1d'
--compressed
--insecure;done
docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect /etc/registry/config.yml