Why Many 404 Errors Can Occur on Docker Layers Before a Docker Push

Why Many 404 Errors Can Occur on Docker Layers Before a Docker Push

AuthorFullName__c
Adi Vizgan
articleNumber
000004513
ft:sourceType
Salesforce
FirstPublishedDate
2019-07-22T08:51:42Z
lastModifiedDate
2024-03-10T07:46:51Z
VersionNumber
6

When pushing a Docker image to Artifactory, the Docker client first sends a HEAD request that contains the checksum of the layer that it needs to upload. This is to verify if this layer already exists or not. 

If the HEAD request triggers a 404 response, it means that this layer does not exist yet and Docker will push it. If it triggers a 200 response, it means that the layer already exists and Docker will not push it a second time.