-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
I wanted to list all the images that are locked. Despite locking the images with write-enabled & delete-enabled as false when I try to list through manifest I see that the image is not having the right values for writeEnabled and deleteEnabled as false.
Related command
az acr manifest list-metadata --registry $registry --name $repository --orderby time_desc
Errors
Despite being locked the above command shows wrong information
{
"architecture": "amd64",
"changeableAttributes": {
- "deleteEnabled": true,
"listEnabled": true,
"readEnabled": true,
- "writeEnabled": true
},
"configMediaType": "application/vnd.docker.container.image.v1+json",
"createdTime": "2024-06-13T07:37:24.1930109Z",
"digest": "",
"imageSize": 557524,
"lastUpdateTime": "2024-06-13T07:37:24.1930109Z",
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"os": "linux",
"tags": [
"2"
]
}When I use the command az acr repository show-tags -n $registry --repository $repository --detail it displays the right information, but it lacks meta infromation like imageSize which I am keen on getting.
Issue script & Debug output
N\A
Expected behavior
I would like to see the right information with the manifest command
Environment Summary
azure-cli 2.59.0 *
core 2.59.0 *
telemetry 1.1.0
Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2
Python location '/usr/bin/python3.9'
Python (Linux) 3.9.18 (main, Sep 22 2023, 17:58:34)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]
Additional context
No response