Skip to content

Instantly share code, notes, and snippets.

@kei-sato
Created April 1, 2016 07:47
Show Gist options
  • Save kei-sato/970ce24609dfdc1d2aff8ffe810df9a1 to your computer and use it in GitHub Desktop.
Save kei-sato/970ce24609dfdc1d2aff8ffe810df9a1 to your computer and use it in GitHub Desktop.
config to use s3 as its storage with docker registry version 2
# https://github.com/docker/distribution/blob/master/docs/configuration.md
# https://github.com/docker/distribution/blob/master/cmd/registry/config-example.yml
# usage:
# docker run -d -p 5000:5000 --name registry \
# -v /path/to/this/config.yml:/etc/docker/registry/config.yml \
# -e REGISTRY_STORAGE_S3_ACCESSKEY= \
# -e REGISTRY_STORAGE_S3_SECRETKEY= \
# -e REGISTRY_STORAGE_S3_REGION= \
# -e REGISTRY_STORAGE_S3_BUCKET= \
version: 0.1
log:
fields:
service: registry
storage:
s3:
accesskey: REQUIRED
secretkey: REQUIRED
region: REQUIRED
bucket: REQUIRED
encrypt: false
secure: false
v4auth: false
chunksize: 5242880
rootdirectory: /registry
http:
addr: :5000
secret: asecretforlocaldevelopment
relativeurls: false
headers:
X-Content-Type-Options: [nosniff]
redis:
addr: localhost:6379
password: asecret
db: 0
dialtimeout: 10ms
readtimeout: 10ms
writetimeout: 10ms
pool:
maxidle: 16
maxactive: 64
idletimeout: 300s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment