Hi,
I have created a public repository sudhakarbathina/product-basic on docker hub
I am trying to push an image that I created on Rhel EC2 instance. It’s throwing below error.:
error parsing HTTP 405 response body: invalid character ‘<’ looking for beginning of value: “\n405 Method Not Allowed\n
Method Not Allowed
\nThe method POST is not allowed for the requested URL.
\n”[ec2-user@ip-172-21-31-231 ~]$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: sudhakarbathina
Password:
Login Succeeded
[ec2-user@ip-… ~]$ sudo docker push sudhakarbathina/product-basic
The push refers to a repository [registry.access.redhat.com/sudhakarbathina/product-basic]
4188b2c102db: Preparing
4bc79e8e3d03: Preparing
2829b1fe8676: Preparing
9e4a776bfca4: Preparing
9f5e0b558c16: Preparing
60ab55d3379d: Waiting
error parsing HTTP 405 response body: invalid character ‘<’ looking for beginning of value: “\n405 Method Not Allowed\n
Method Not Allowed
\nThe method POST is not allowed for the requested URL.
\n”Any help to fix the issue is greatly appreciated. I am using below docker version:
[ec2-user@ip-172-21-31-231 ~]$ docker version
Client:
Version: 1.12.5
API version: 1.24
Package version: docker-common-1.12.5-14.el7.x86_64
Go version: go1.7.4
Git commit: 047e51b/1.12.5
Built: Wed Jan 11 17:53:20 2017
OS/Arch: linux/amd64
Server:
Version: 1.12.5
API version: 1.24
Package version: docker-common-1.12.5-14.el7.x86_64
Go version: go1.7.4
Git commit: 047e51b/1.12.5
Built: Wed Jan 11 17:53:20 2017
OS/Arch: linux/amd64