cd83b75d4c
Signed-off-by: Kelsey Hightower <kelsey.hightower@gmail.com>
57 lines
1.3 KiB
Markdown
57 lines
1.3 KiB
Markdown
# OS X Setup Guide
|
|
|
|
This guide will walk you through running the new Go based [Docker registry](https://github.com/docker/distribution) on your local OS X machine.
|
|
|
|
## Checkout the Docker Distribution source tree
|
|
|
|
```
|
|
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
|
|
```
|
|
|
|
## Build the registry binary
|
|
|
|
```
|
|
GOPATH=$(PWD)/Godeps/_workspace:$GOPATH make binaries
|
|
sudo cp bin/registry /usr/local/libexec/registry
|
|
```
|
|
|
|
## Setup
|
|
|
|
Copy the registry configuration file in place:
|
|
|
|
```
|
|
mkdir /Users/Shared/Registry
|
|
cp docs/osx/config.yml /Users/Shared/Registry/config.yml
|
|
```
|
|
|
|
## Running the Docker Registry under launchd
|
|
|
|
Copy the Docker registry plist into place:
|
|
|
|
```
|
|
plutil -lint docs/osx/com.docker.registry.plist
|
|
cp docs/osx/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
|
|
```
|
|
|
|
### Restarting the docker registry service
|
|
|
|
```
|
|
launchctl stop com.docker.registry
|
|
launchctl start com.docker.registry
|
|
```
|
|
|
|
### Unloading the docker registry service
|
|
|
|
```
|
|
launchctl unload ~/Library/LaunchAgents/com.docker.registry.plist
|
|
```
|