registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
echo $repo
tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
for tag in $tags; do
echo $tag
curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
curl -sSL -I \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
hash_ring | |
~~~~~~~~~~~~~~ | |
Implements consistent hashing that can be used when | |
the number of server nodes can increase or decrease (like in memcached). | |
Consistent hashing is a scheme that provides a hash table functionality | |
in a way that the adding or removing of one slot | |
does not significantly change the mapping of keys to slots. |