Enhance building doc to reflect the new data default location
Signed-off-by: Olivier Gambier <olivier@docker.com>master
							parent
							
								
									8ed0c66745
								
							
						
					
					
						commit
						ad23a43bc4
					
				| 
						 | 
				
			
			@ -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:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue