Created
October 28, 2019 23:11
-
-
Save a5ync/4e0320f456bdf7874176c25d82088bf3 to your computer and use it in GitHub Desktop.
docker-registry configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more /etc/docker/registry/config.yml | |
version: 0.1 | |
log: | |
fields: | |
service: registry | |
storage: | |
delete: | |
enabled: true | |
cache: | |
blobdescriptor: inmemory | |
filesystem: | |
rootdirectory: /var/lib/registry | |
http: | |
addr: :5000 | |
headers: | |
Access-Control-Allow-Origin: ['*'] | |
Access-Control-Expose-Headers: ['Docker-Content-Digest'] | |
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE'] | |
X-Content-Type-Options: [nosniff] | |
health: | |
storagedriver: | |
enabled: true | |
interval: 10s | |
threshold: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment