The push refers to a repository [192.168.1.98:5000/complete] (len: 1) Sending image list Error: Status 405 trying to push repository complete: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>405 Method Not Allowed</title>\n</head><body>\n<h1>Method Not Allowed</h1>\n<p>The requested method PUT is not allowed for the URL /v1/repositories/complete/.</p>\n</body></html>\n"
405 Method Not Allowed
Manifest put is not allowed because the registry is configured as a pull-through cache or for some other reason
UNSUPPORTED: The operation was unsupported due to a missing implementation or invalid set of parameters.
同一个doc使用包含/ v2的url,而不是问题中使用的url(/ v1 / repositories / complete)
Getting the headers correct is very important. For all responses to any request under the “
/v2/” url space, the
Docker-Distribution-API-Versionheader should be set to the value “
registry/2.0”, even for a
mistake in port forwarding on the registry host: The 5000 port was servicing from another server.
I’ve switched to an available port and everything started working.