I want to check if a specific layer exists in my private Docker registry. To do that I will check if a blob exists with: HEAD /v2/<name>/blobs/<digest>
.
My problem is find the layer digest. I've already tried with layer.DiffID [calculated with DiffID = SHA256hex(uncompressed layer tar data)
], but is not work because DiffID is not the layer digest.
Anyone know how to calculate/generate the layer digest?