This docker registry image simply mounts a "registry" volume to be reused between attachments.
Create a data volume container:
docker run -d -v /registry --name registry-data ubuntu echo Data only container
Run registry and attach data
docker run -d -p 5000:5000 --volumes-from registry-data --name registry mikesplain/registry
Or to pre-pull images:
docker pull ubuntu docker pull mikesplain/registry
There are many ways to do this, I just wanted to document one way I've been doing it.