forked from TrueCloudLab/distribution
Sample config file changes
Rename config.yml to dev-config.yml Add example-config.yml, a simple configuration file for the official This was originally made for the the distribution-library-image repo, but is being moved here to make sure it stays in sync. Update Dockerfile and docs for the rename. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
9038e48c3b
commit
f0c5284d2d
5 changed files with 17 additions and 3 deletions
|
@ -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 a new issue