From ad23a43bc4ab7100b0e5d923406a1c434e56ef40 Mon Sep 17 00:00:00 2001 From: Olivier Gambier Date: Thu, 11 Jun 2015 11:08:16 -0700 Subject: [PATCH] Enhance building doc to reflect the new data default location Signed-off-by: Olivier Gambier --- docs/building.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/building.md b/docs/building.md index cd534c71..9d4960bd 100644 --- a/docs/building.md +++ b/docs/building.md @@ -12,7 +12,17 @@ If a Go development environment is setup, one can use `go get` to install the go get github.com/docker/distribution/cmd/registry ``` -The above will install the source repository into the `GOPATH`. The `registry` +The above will install the source repository into the `GOPATH`. + +Now create the directory for the registry data (this might require you to set permissions properly) + +```sh +mkdir -p /var/lib/registry +``` + +... or alternatively `export REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/somewhere` if you want to store data into another location. + +The `registry` binary can then be run with the following: ```