I would like to save image digest after I push it to a registry. One way is to do the push and then inspect the image and look at RepoDigests. Other way, which doesn't need the second api call and is therefore less prone to a race conditions, is to extract the digest from the JSONs in the response to POST /images/(name)/push:
...
{"status":"latest: digest: sha256:29f5d56d12684887bdfa50dcd29fc31eea4aaf4ad3bec43daf19026a7ce69912 size: 527"}
{"progressDetail":{},"aux":{"Tag":"latest","Digest":"sha256:29f5d56d12684887bdfa50dcd29fc31eea4aaf4ad3bec43daf19026a7ce69912","Size":527}}
...
Can the JSON object with the digest be considered part of the API? Can you please add it to the documentation?
I would like to save image digest after I push it to a registry. One way is to do the push and then inspect the image and look at
RepoDigests. Other way, which doesn't need the second api call and is therefore less prone to a race conditions, is to extract the digest from the JSONs in the response to POST /images/(name)/push:Can the JSON object with the digest be considered part of the API? Can you please add it to the documentation?