Skip to content

Instantly share code, notes, and snippets.

View bigglesandginger's full-sized avatar

Charles Coleman bigglesandginger

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@bigglesandginger
bigglesandginger / clean-docker-server.sh
Last active December 7, 2016 18:22
Docker server's garbage collect does not delete old revisions of a tag that are inaccesible. This script will clean up the stranded revisions left behind in a docker registry to allow docker server's garbage collector to perform its task thouroughly
#! /bin/bash
HELP=true
SOURCE=""
REPOSITORY="http://localhost:5000"
SOURCE_FOUND=false
while [[ $# -gt 0 ]]
do
key="$1"