DockerCLI/cli/config
Sebastiaan van Stijn 969580a887
config: ignore empty config file instead of printing warning
Before this change, a warning would be printed if the `~/.docker/config.json`
file was empty:

    mkdir -p ~/.docker && touch ~/.docker/config.json
    docker pull busybox
    WARNING: Error loading config file: /root/.docker/config.json: EOF
    Using default tag: latest
    ....

Given that we also accept an empty "JSON" file (`{}`), it should be
okay to ignore an empty file, as it's effectively a configuration file
with no custom options set.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-23 14:51:28 +02:00
..
configfile config: ignore empty config file instead of printing warning 2020-06-23 14:51:28 +02:00
credentials bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
types Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
config.go config: fix error message using incorrect filename 2020-06-12 22:30:10 +02:00
config_test.go config: ignore empty config file instead of printing warning 2020-06-23 14:51:28 +02:00