5 lines
215 B
Bash
Raw Permalink Normal View History

mkdir -p "/config/registry" "/data/registry"
[ -d "/etc/docker-registry" ] && rm -Rf "/etc/docker-registry"/*
ln -sf "/config/registry" "/etc/docker-registry"
ln -sf "$(type -P docker-registry)" "/usr/bin/registry"