Docker for Windows and docker-maven-plugin - "SSLException: Unrecognized SSL message, plaintext connection" error Docker for Windows and docker-maven-plugin - "SSLException: Unrecognized SSL message, plaintext connection" error docker docker

Docker for Windows and docker-maven-plugin - "SSLException: Unrecognized SSL message, plaintext connection" error


There might be some configuration element under %HOME%.docker affecting the communication with docker-maven-plugin. Try to remove your %HOME%.docker folder and restart docker. After that, run the

oc login -u user https://url-to-openshift:port --insecure-skip-tls-verify

and

docker login -u user -p token url-to-private-registry

and then open the %HOME%.docker and if your file is like this:

{   "auths": {      "url-to-private-registry": {}   },   "credsStore": "wincred"    }

then remove the credsStore part because the spotify docker-maven-plugin doesn't support it.

Example:

{   "auths": {      "url-to-private-registry": {}   }}

When you run the docker login again, it will generate the token again and you shouldn't have any authentication problem.

After the login, your %HOME%.docker\config.json will look like this:

{   "auths": {      "url-to-private-registry": {          "auth:" "token-that-docker-maven-plugin-needs-when-property-useConfigFile-is-true"      }   }}

At least, it worked for me.