This guide will walk you through running the new Go based Docker registry on your local OS X machine.
mkdir -p $GOPATH/src/github.com/docker
git clone https://github.com/docker/distribution.git $GOPATH/src/github.com/docker/distribution
cd $GOPATH/src/github.com/docker/distribution
GOPATH=$(PWD)/Godeps/_workspace:$GOPATH make binaries
sudo cp bin/registry /usr/local/libexec/registry
Copy the registry configuration file in place:
mkdir /Users/Shared/Registry
cp config.yml /Users/Shared/Registry/config.yml
Copy the Docker registry plist into place:
plutil -lint com.docker.registry.plist
cp com.docker.registry.plist ~/Library/LaunchAgents/
chmod 644 ~/Library/LaunchAgents/com.docker.registry.plist
Start the Docker registry:
launchctl load ~/Library/LaunchAgents/com.docker.registry.plist
launchctl stop com.docker.registry
launchctl start com.docker.registry
launchctl unload ~/Library/LaunchAgents/com.docker.registry.plist