Failed to Upload the Image to the Private Image Repository
Symptom
When an on-premises cluster on a private network is connected to HSS, the image fails to be uploaded to the private image repository by running the image upload command in the cluster, and the error message "http: server gave HTTP response to HTTPS client" is displayed, as shown in Figure 1.
Solution
- Run the following command to replace docker manifest push --insecure hub.docker.com/1/anp-agent:24.5.0 in the image upload command:
# Save the manifest description of the image to a JSON file. docker manifest inspect {Image repository name}/{Organization name}/{Image name}:{Image tag} >manifest.json
- Run the following command to replace docker manifest push --insecure hub.docker.com/1/hostguard:3.2.13 in the image upload command:
# Run the curl command to push the manifest file to the image repository. curl -s -u {Username}:{Password }" -X PUT -H "Content-Type: application/vnd.docker.distribution.manifest.list.v2+json" http://{ image repository name}/v2/{Organization name}/{Image name}/manifests/{Image tag} -T manifest.json
- Run the modified image upload command on the cluster node.
If the command output shown in Figure 2 is displayed, the upload succeeded.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot