You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/manuals/docker-hub/repos/manage/hub-images/immutable-tags.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
description: Learn about immutable tags and how they help maintain image version consistency on Docker Hub.
3
3
keywords: Docker Hub, Hub, repository content, tags, immutable tags, version control
4
-
title: Immutable tags on Docker Hub
5
-
linkTitle: Immutable tags
4
+
title: Immutable Tags on Docker Hub
5
+
linkTitle: Immutable Tags
6
6
weight: 11
7
7
---
8
-
{{< summary-bar feature_name="Immutable tags" >}}
8
+
> **Availability**: Beta
9
9
10
10
Immutable tags provide a way to ensure that specific image versions remain unchanged once they are published to Docker Hub. This feature helps maintain consistency and reliability in your container deployments by preventing accidental overwrites of important image versions.
11
11
@@ -25,15 +25,20 @@ To enable immutable tags for your repository:
25
25
1. Sign in to [Docker Hub](https://hub.docker.com).
26
26
2. Select **My Hub** > **Repositories**.
27
27
3. Select the repository where you want to enable immutable tags.
28
-
4. Select the **Settings** tab
29
-
5. Under **Tag mutability settings**, select **Immutable**.
30
-
6. Select **Save**.
28
+
4. Go to **Settings** > **General**.
29
+
5. Under **Tag mutability settings**, select one of the following options:
30
+
-**All tags are mutable (Default):**
31
+
Tags can be changed to reference a different image. This allows you to retarget a tag without creating a new one.
32
+
-**All tags are immutable:**
33
+
Tags cannot be updated to point to a different image after creation. This ensures consistency and prevents accidental changes. This includes the `latest` tag.
34
+
-**Specific tags are immutable:**
35
+
Define specific tags that cannot be updated after creation using RegEx values.
36
+
6. Click **Save**.
31
37
32
38
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.
33
39
34
-
> [!NOTE]
35
-
>
36
-
> All tags in the repository become immutable, including the `latest` tag.
40
+
> [!NOTE]
41
+
> 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).
37
42
38
43
## Working with immutable tags
39
44
@@ -48,3 +53,8 @@ To push an image, create a new tag for your updated image and push it to the rep
0 commit comments