Fixed: Docker error tls: oversized record received with length, Centos7

I was getting following error while pushing images to docker registry , on Centos7


Error response from daemon: v1 ping attempt failed with error:
Get https://myipaddress:5000/v1/_ping: tls: oversized record received with length.

Fix : Added following lines to file /etc/sysconfig/docker


INSECURE_REGISTRY=’–insecure-registry 192.168.2.21:5050′

Replace the IP address with your own IP address

And restarted Docker service

Author: , 0000-00-00