This largely mirrors changes done in dockerfile-maven to integrate the
new authentication support from docker-client.
The plugin now loads credentials from three places, in order:
Any credentials stored in ~/.dockercfg or ~/.docker/config.json
(Optional) Google Cloud credentials, either loaded through the
DOCKER_GOOGLE_CREDENTIALS environment variable or Google's automatic
resolution process for credentials
Last precedence is given to any explicitly configured credentials in
the plugin's configuration.
The useConfigFile parameter is no longer used as authentication info
from the docker configuration file is always activated.
One of the big motivations of the revamped authentication support in
docker-client was to address long-standing issues in this plugin in
regards to being able to authenticate against multiple registries, as
the previous implementation assumed that the same credentials would be
used for any possible registry.
This largely mirrors changes done in dockerfile-maven to integrate the new authentication support from docker-client.
The plugin now loads credentials from three places, in order:
Any credentials stored in ~/.dockercfg or ~/.docker/config.json
(Optional) Google Cloud credentials, either loaded through the DOCKER_GOOGLE_CREDENTIALS environment variable or Google's automatic resolution process for credentials
Last precedence is given to any explicitly configured credentials in the plugin's configuration.
The
useConfigFile
parameter is no longer used as authentication info from the docker configuration file is always activated.One of the big motivations of the revamped authentication support in docker-client was to address long-standing issues in this plugin in regards to being able to authenticate against multiple registries, as the previous implementation assumed that the same credentials would be used for any possible registry.
Closes #326, #284, #252, and probably more.
For more reference see: