Skip to content

Commit e58a4e4

Browse files
fix steps
Signed-off-by: Craig <[email protected]>
1 parent 0ca8e19 commit e58a4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/reference/api/registry/latest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,15 @@ tags:
222222
"https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPO:pull,push,delete" \
223223
| jq -r .token)
224224

225-
# Step 2: Get the manifest and extract the digest from response headers
225+
# Step 2 and 3: Get the manifest and extract the digest from response headers
226226
DIGEST=$(curl -sI -H "Authorization: Bearer $TOKEN" \
227227
-H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
228228
https://registry-1.docker.io/v2/$REPO/manifests/$TAG \
229229
| grep -i Docker-Content-Digest | tr -d '\r' | awk '{print $2}')
230230

231231
echo "Deleting manifest with digest: $DIGEST"
232232

233-
# Step 3: Delete the manifest by digest
233+
# Step 4: Delete the manifest by digest
234234
curl -s -X DELETE \
235235
-H "Authorization: Bearer $TOKEN" \
236236
https://registry-1.docker.io/v2/$REPO/manifests/$DIGEST

0 commit comments

Comments
 (0)