Sonatype nexus access issue

Error response from daemon: Get http: server gave HTTP response to HTTPS client
This error came while i tried to access nexus installed at .i tried to docker login from through command line .The telnet is happening and the ports are added in the fw. also the has been added in the insecure registries section in the daemon.json file. Any one knows ,how to resolve this?

Unfortunately Docker prevents using authentication with insecure repositories.

Solved. We need to do certain configurations in the daemon file.Through http also,docker can communicate