Skip to content

Update immutable-tags.md #22895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,20 @@
1. Sign in to [Docker Hub](https://hub.docker.com).
2. Select **My Hub** > **Repositories**.
3. Select the repository where you want to enable immutable tags.
4. Select the **Settings** tab
5. Under **Tag mutability settings**, select **Immutable**.
4. Go to **Settings** > **General**.
5. Under **Tag mutability settings**, select one of the following options:
- **All tags are mutable (Default)**:
Tags can be changed to reference a different image. This lets you retarget a tag without creating a new one.

Check failure on line 31 in content/manuals/docker-hub/repos/manage/hub-images/immutable-tags.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'retarget'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'retarget'?", "location": {"path": "content/manuals/docker-hub/repos/manage/hub-images/immutable-tags.md", "range": {"start": {"line": 31, "column": 72}}}, "severity": "ERROR"}
- **All tags are immutable**:
Tags cannot be updated to point to a different image after creation. This ensures consistency and prevents accidental changes. This includes the `latest` tag.
- **Specific tags are immutable**:
Define specific tags that cannot be updated after creation using regex values.
6. Select **Save**.

Once enabled, all tags are locked to their specific images, ensuring that each tag always points to the same image version and cannot be modified.

> [!NOTE]
>
> All tags in the repository become immutable, including the `latest` tag.
> [!NOTE]
> This implementation of regular expressions follows the [Go regexp package](https://pkg.go.dev/regexp), which is based on the RE2 engine. For more information, visit [RE2 Regular Expression Syntax](https://github.com/google/re2/wiki/Syntax).

## Working with immutable tags

Expand All @@ -48,3 +53,8 @@