A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html below:

Preventing image tags from being overwritten in Amazon ECR

Preventing image tags from being overwritten in Amazon ECR

You can prevent image tags from being overwritten by turning on tag immutability in a repository. After tag immutability is turned on, the ImageTagAlreadyExistsException error is returned if you push an image with a tag that is already in the repository. Tag immutability affects all tags. You cannot make some tags immutable while others aren't.

You can use the AWS Management Console and AWS CLI tools to set image tag mutability for a new repository or for an existing repository. To create a repository using console steps, see Creating an Amazon ECR private repository to store images.

Setting image tag mutability (AWS Management Console) To set image tag mutability
  1. Open the Amazon ECR console at https://console.aws.amazon.com/ecr/repositories.

  2. From the navigation bar, choose the Region that contains the repository to edit.

  3. In the navigation pane, choose Repositories under Private registry.

    If you don't see Repositories, choose Private registry to expand the menu and then choose Repositories.

  4. On the Private repositories page, choose the radio button before the repository name for which you want to set the image tag mutability settings.

  5. Choose Actions and then choose Repository under Edit.

  6. For Image tag immutability, choose one of the following tag mutability settings for the repository.

  7. For Image scan settings, while you can specify the scan settings at the repository level for basic scanning, it is best practice to specify the scan configuration at the private registry level. Specify the scanning settings at the private registry allow you to enable either enhanced scanning or basic scanning as well as define filters to specify which repositories are scanned. For more information, see Scan images for software vulnerabilities in Amazon ECR.

  8. For Encryption settings, this is a view only field as the encryption settings for a repository can't be changed once the repository is created.

  9. Choose Save to update the repository settings.

Setting image tag mutability (AWS CLI) To create a repository with immutable tags configured

Use one of the following commands to create a new image repository with immutable tags configured.

To update the image tag mutability settings for a repository

Use one of the following commands to update the image tag mutability settings for an existing repository.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4