use https://github.com/srid/docker-registry-go

this is most relevant to our purposes.