-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Create immutable-tags.md #22608
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
Create immutable-tags.md #22608
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5f4c471
Create immutable-tags.md
sheltongraves 7e0e0f2
Update immutable-tags.md
sheltongraves 24c8e5e
Update immutable-tags.md
sheltongraves 70fa7f0
Update immutable-tags.md
sheltongraves 3e032de
Update immutable-tags.md
sheltongraves 6ae72bf
Update immutable-tags.md
sheltongraves cb25ee4
Move immutable-tags.md and update summary.yaml
craig-osterhout File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
sheltongraves marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| weight: 11 | ||
| --- | ||
| > **Availability**: Beta | ||
sheltongraves marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 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. Click **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] | ||
| > | ||
sheltongraves marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| > All tags in the repository become immutable, including the `latest` tag | ||
sheltongraves marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## 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. | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.