registry/configuration
Rober Morales-Chaparro 579107cf2e Improve error message in case invalid env var found
If you set an env var with non-yaml content but accidentally collides with a possible configuration env var,...

The current error is

```configuration error: error parsing /etc/docker/registry/config.yml: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `tcp://1...` into configuration.Parameters```

With this change we can see at least which is the problematic env var.

Some orchestrators such as docker-compose set env vars on top on user env vars, so debugging can be tricky if you are not passing vars, and the error is pointing you to a problably valid config file.

Signed-off-by: Rober Morales-Chaparro <rober@rstor.io>
Signed-off-by: Rober Morales-Chaparro <rober.morales@ebury.com>
2021-11-24 15:55:22 +01:00
..
configuration.go Add configuration option for Redis TLS 2021-03-01 18:55:56 -05:00
configuration_test.go Added flag for user configurable cipher suites 2021-02-25 14:19:56 -06:00
parser.go Improve error message in case invalid env var found 2021-11-24 15:55:22 +01:00
parser_test.go Add tests for configuration parser 2017-11-15 17:01:19 +01:00