Issue:-
The issue occured if you are using the private repository provided by the Docker hub via container on a private server and pushing the image using the IP of the server directly.
Error:-
[centos@docker ~]$ docker push 172.31.14.46:5000/devUsing default tag: latestThe push refers to repository [172.31.14.46:5000/dev]Get "https://172.31.14.46:5000/v2/": http: server gave HTTP response to HTTPS client
Due to the above error the image is not getting pushed into the Repository.