Forrest logo
back to context overview

aws-ecr

List of commands for aws-ecr:

  • aws-ecr:tldr:02813 aws-ecr: List images within a repository.
    $ aws ecr list-images --repository-name ${repository}
    try on your machine
    explain this command
  • aws-ecr:tldr:59707 aws-ecr: Tag a local image for ECR.
    $ docker tag ${container_name}:${tag} ${aws_account_id}.dkr.ecr.${region}.amazonaws.com/${container_name}:${tag}
    try on your machine
    explain this command
  • aws-ecr:tldr:5b6b0 aws-ecr: Delete an image from a repository.
    $ aws ecr batch-delete-image --repository-name ${repository} --image-ids imageTag=${latest}
    try on your machine
    explain this command
  • aws-ecr:tldr:6a889 aws-ecr: Authenticate Docker with the default registry (username is AWS).
    $ aws ecr get-login-password --region ${region} | ${docker login} --username AWS --password-stdin ${aws_account_id}.dkr.ecr.${region}.amazonaws.com
    try on your machine
    explain this command
  • aws-ecr:tldr:750e2 aws-ecr: Create a repository.
    $ aws ecr create-repository --repository-name ${repository} --image-scanning-configuration scanOnPush=${select} --region ${region}
    try on your machine
    explain this command
  • aws-ecr:tldr:95f5a aws-ecr: Pull an image from a repository.
    $ docker pull ${aws_account_id}.dkr.ecr.${region}.amazonaws.com/${container_name}:${tag}
    try on your machine
    explain this command
  • aws-ecr:tldr:b9d5c aws-ecr: Delete a repository.
    $ aws ecr delete-repository --repository-name ${repository} --force
    try on your machine
    explain this command
  • aws-ecr:tldr:e9a14 aws-ecr: Push an image to a repository.
    $ docker push ${aws_account_id}.dkr.ecr.${region}.amazonaws.com/${container_name}:${tag}
    try on your machine
    explain this command
back to context overview