DockerCLI/cli/config
Danial 3fa3542e90 configfile: Initialize nil AuthConfigs
Initialize AuthConfigs map if it's nil before returning it.
This fixes fileStore.Store nil dereference panic when adding a new key
to the map.

Signed-off-by: Danial Gharib <danial.mail.gh@gmail.com>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit ad43df5e86)
2023-07-19 16:18:34 +02:00
..
configfile configfile: Initialize nil AuthConfigs 2023-07-19 16:18:34 +02:00
credentials configfile: Initialize nil AuthConfigs 2023-07-19 16:18:34 +02:00
types Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
config.go fix innocuous data-race when config.Load called in parallel 2022-01-27 10:37:14 +01:00
config_test.go cli/config: remove deprecated io/ioutil and use t.TempDir() 2023-02-27 16:28:59 -05:00