mirror of https://github.com/docker/docs.git
Create immutable-tags.md (#22608)
Adding a new page for immutable tags feature. I was thinking it would go in Docker Hub -> Repositories -> Images. But open to your discretion of the best place for it. <!--Delete sections as needed --> ## Description <!-- Tell us what you did and why --> ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review --------- Signed-off-by: Craig <craig.osterhout@docker.com> Co-authored-by: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> Co-authored-by: Craig <craig.osterhout@docker.com>
This commit is contained in:
parent
9b93eb9f3e
commit
3514b18fc9
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
description: Learn about immutable tags and how they help maintain image version consistency on Docker Hub.
|
||||
keywords: Docker Hub, Hub, repository content, tags, immutable tags, version control
|
||||
title: Immutable tags on Docker Hub
|
||||
linkTitle: Immutable tags
|
||||
weight: 11
|
||||
---
|
||||
{{< summary-bar feature_name="Immutable tags" >}}
|
||||
|
||||
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.
|
||||
|
||||
## What are immutable tags?
|
||||
|
||||
Immutable tags are image tags that, once pushed to Docker Hub, cannot be overwritten or deleted. This ensures that a specific version of an image remains exactly the same throughout its lifecycle, providing:
|
||||
|
||||
- Version consistency
|
||||
- Reproducible builds
|
||||
- Protection against accidental overwrites
|
||||
- Better security and compliance
|
||||
|
||||
## Enable immutable tags
|
||||
|
||||
To enable immutable tags for your repository:
|
||||
|
||||
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**.
|
||||
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.
|
||||
|
||||
## Working with immutable tags
|
||||
|
||||
When immutable tags are enabled:
|
||||
|
||||
- You cannot push a new image with the same tag name
|
||||
- You must use a new tag name for each new image version
|
||||
|
||||
To push an image, create a new tag for your updated image and push it to the repository.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -182,6 +182,8 @@ Hardened Docker Desktop:
|
|||
for: Administrators
|
||||
Image management:
|
||||
availability: Beta
|
||||
Immutable tags:
|
||||
availability: Beta
|
||||
Import builds:
|
||||
availability: Beta
|
||||
requires: Docker Desktop [4.31](/manuals/desktop/release-notes.md#4310) and later
|
||||
|
|
Loading…
Reference in New Issue