Skip to content

Instantly share code, notes, and snippets.

View acaranta's full-sized avatar

Arthur Caranta acaranta

View GitHub Profile
#!/bin/bash
set -eu
shopt -s nullglob
readonly base_dir=/var/lib/docker/registry
readonly output_dir=$(mktemp -d -t trace-images-XXXX)
readonly jq=/usr/bin/jq
readonly repository_dir=$base_dir/repositories