Merge pull request #790 from aaronlehmann/config-files
Sample config file changes
This commit is contained in:
commit
7eabb7800e
@ -15,4 +15,4 @@ RUN make PREFIX=/go clean binaries
|
|||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT ["registry"]
|
ENTRYPOINT ["registry"]
|
||||||
CMD ["cmd/registry/config.yml"]
|
CMD ["cmd/registry/dev-config.yml"]
|
||||||
|
14
cmd/registry/example-config.yml
Normal file
14
cmd/registry/example-config.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
version: 0.1
|
||||||
|
log:
|
||||||
|
fields:
|
||||||
|
service: registry
|
||||||
|
storage:
|
||||||
|
cache:
|
||||||
|
layerinfo: inmemory
|
||||||
|
filesystem:
|
||||||
|
rootdirectory: /var/lib/registry
|
||||||
|
maintenance:
|
||||||
|
uploadpurging:
|
||||||
|
enabled: false
|
||||||
|
http:
|
||||||
|
addr: :5000
|
@ -45,7 +45,7 @@ The registry can be run with the default config using the following
|
|||||||
incantantation:
|
incantantation:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ $GOPATH/bin/registry $GOPATH/src/github.com/docker/distribution/cmd/registry/config.yml
|
$ $GOPATH/bin/registry $GOPATH/src/github.com/docker/distribution/cmd/registry/dev-config.yml
|
||||||
INFO[0000] endpoint local-5003 disabled, skipping app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
INFO[0000] endpoint local-5003 disabled, skipping app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
||||||
INFO[0000] endpoint local-8083 disabled, skipping app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
INFO[0000] endpoint local-8083 disabled, skipping app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
||||||
INFO[0000] listening on :5000 app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
INFO[0000] listening on :5000 app.id=34bbec38-a91a-494a-9a3f-b72f9010081f version=v2.0.0-alpha.1+unknown
|
||||||
|
@ -1552,7 +1552,7 @@ The above configures the registry instance to run on port `5000`, binding to
|
|||||||
verbose.
|
verbose.
|
||||||
|
|
||||||
A similar simple configuration is available at
|
A similar simple configuration is available at
|
||||||
[config.yml](https://github.com/docker/distribution/blob/master/cmd/registry/config.yml).
|
[example-config.yml](https://github.com/docker/distribution/blob/master/cmd/registry/example-config.yml).
|
||||||
Both are generally useful for local development.
|
Both are generally useful for local development.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user