Registry2.0.1 使用s3存储报错


我是下载了docker hub中的 registry2.0.1 -v 把config.yml映射进去启动registry
命令如下
docker pull registry:2.0.1

docker run -d --name=cangku -p 80:5000 -v /opt/config://go/src/github.com/docker/distribution/cmd/registry/config.yml

docker logs cangku

configuration error: error parsing cmd/registry/config.yml: yaml: line 8: found character that cannot start any token
usage: registry <config>


config.yml
version: 0.1
log:
level: debug
fields:
service: registry
environment: development
storage:
s3:
    accesskey: AKIAJTRTYNCXIN4WOP3
    secretkey: zbA/lsxd6kC6WSL12VLB8q7u60DbbccPQXU6yy98
    region: ap-northeast-1
    bucket: s3-ceph
    encrypt: true
    secure: true
    v4auth: true
    chunksize: 5242880
    rootdirectory: /
cache:
    layerinfo: inmemory 
http:
addr: :5000
secret: asecretforlocaldevelopment
debug:
    addr: localhost:5001
redis:
addr: localhost:6379
pool:
maxidle: 16
maxactive: 64
idletimeout: 300s
dialtimeout: 10ms
readtimeout: 10ms
writetimeout: 10ms
notifications:
endpoints:
    - name: local-8082
      url: http://localhost:5003/callback
      headers:
         Authorization: 
      timeout: 1s
      threshold: 10
      backoff: 1s
      disabled: true
    - name: local-8083
      url: http://localhost:8083/callback
      timeout: 1s
      threshold: 10
      backoff: 1s
      disabled: true
已邀请:

oilbeater - 北大学渣@灵雀云

赞同来自:


不知道现在怎么样了,从格式上来看 S3 应该要缩进

要回复问题请先登录注册