Skip to content

Instantly share code, notes, and snippets.

View aeytom's full-sized avatar

Tom Anheyer aeytom

View GitHub Profile
@aeytom
aeytom / clean-registry.sh
Last active December 27, 2020 09:36
Delete image tags from microk8s repository
#!/bin/bash
REPO=$1
TAG=$2
DOCKER_REGISTRY=${DOCKER_REGISTRY:-localhost:32000}
repositories=$(curl -s ${DOCKER_REGISTRY}/v2/_catalog | jq -r '.repositories[]')
if test -z "$REPO"
then