This is a solution for both: Linux and Windows.
You maybe came across this error pushing or pulling to/from a local registry,
like Nexus or others.
The problem is that Docker is trying to use HTTPS protocol but your registry
does not support it, it accepts only HTTP connection.