Difference between revisions of "Aws ecr list-images"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/list-images.html
 
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/list-images.html
[[aws ecr]] list-images [[--repository-name]]
+
* <code>[[aws ecr]] list-images [[--repository-name]] [[YOUR-REPO]]</code>
 
+
* <code>aws ecr list-images --repository-name cluster-autoscaler</code>
aws ecr list-images --repository-name cluster-autoscaler
 
  
 +
== Examples ==
 
  aws ecr list-images --repository-name your_repo/name
 
  aws ecr list-images --repository-name your_repo/name
 
  {
 
  {
Line 15: Line 15:
 
  }
 
  }
  
  for REPOS in $([[aws ecr describe-repositories]] | grep repositoryName | cut -d'"' -f4); do echo $REPOS; aws ecr list-images --repository-name $REPOS; done
+
  [[for]] REPOS in $([[aws ecr describe-repositories]] | grep repositoryName | cut -d'"' -f4); do echo $REPOS; [[aws ecr]] list-images --repository-name $REPOS [[--no-paginate]]; done
 
 
  
  An error occurred ([[RepositoryNotFoundException]]) when calling the ListImages operation: The repository with name '0123456678.dkr.ecr.eu-west-1.amazonaws.com/xxxxx' does not exist in the registry with id '817545453581'
+
== Errors ==
 +
  An error occurred ([[RepositoryNotFoundException]]) when calling the ListImages operation: The repository with name '0123456678.dkr.ecr.eu-west-1.amazonaws.com/xxxxx' does not exist in the registry with id '817545123456'
  
 
== Related ==
 
== Related ==
 
* <code>[[aws ecr describe-repositories]]</code>
 
* <code>[[aws ecr describe-repositories]]</code>
 
* <code>[[aws ecr describe-images]]</code>
 
* <code>[[aws ecr describe-images]]</code>
 +
* [[docker login]]
  
 
== See also ==
 
== See also ==

Latest revision as of 19:49, 22 February 2024

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/list-images.html

Examples[edit]

aws ecr list-images --repository-name your_repo/name
{
   "imageIds": [
       {
           "imageDigest": "sha256:9c60b65baxxxx54275e090c5bb7f0f0af9788",
           "imageTag": "rev-1b0befeba91d0d7bb223212266d2cfb1de500gg"
       }
   ]
}
for REPOS in $(aws ecr describe-repositories | grep repositoryName | cut -d'"' -f4); do echo $REPOS; aws ecr list-images --repository-name $REPOS --no-paginate; done

Errors[edit]

An error occurred (RepositoryNotFoundException) when calling the ListImages operation: The repository with name '0123456678.dkr.ecr.eu-west-1.amazonaws.com/xxxxx' does not exist in the registry with id '817545123456'

Related[edit]

See also[edit]

Advertising: