Skip to content

Instantly share code, notes, and snippets.

@a5ync
Created October 28, 2019 23:11
Show Gist options
  • Save a5ync/4e0320f456bdf7874176c25d82088bf3 to your computer and use it in GitHub Desktop.
Save a5ync/4e0320f456bdf7874176c25d82088bf3 to your computer and use it in GitHub Desktop.
docker-registry configuration
# 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