In https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/528617/ I tried to add a CORS header, but the docker-registry service ended up not starting with the error message:
Sep 05 18:09:28 tools-docker-registry-03 docker-registry[650]: configuration error: error parsing /etc/docker/registry/config.yml: yaml: unmarshal errors:
The generated YAML looked like:
http: addr: 127.0.0.1:5000 headers: Access-Control-Allow-Origin: "['*']" storage: cache: blobdescriptor: inmemory filesystem: rootdirectory: "/srv/registry" version: 0.1