Docker Tag Generator
Format semantic release Docker image tags (latest, v1.0.0, commit-sha).
Dockerfile Generator
About Docker Tag Generator
The Docker Container Tag & Release Version Matrix Generator creates standardized semantic tags (`v1.2.3`, `1.2`, `1`, `latest`, `sha-abc1234`, `main-build-42`) and generates corresponding multi-tag `docker build` / `docker push` commands.
How to Use Docker Tag Generator
Step 1
Enter your image repository name (e.g. `ghcr.io/org/app`).
Step 2
Provide your semantic version (e.g. `1.2.0`) and optional Git SHA.
Step 3
Select desired tag formats (SemVer aliases, Latest, SHA).
Step 4
Copy the generated multi-tag build and push shell commands.
Practical Use Cases for Docker Tag Generator
CI/CD Automated Container Release Tagging
Generate multi-tag release commands so publishing version `1.4.2` automatically tags and pushes `1.4.2`, `1.4`, `1`, and `latest`.
Git SHA & Branch Preview Builds
Construct ephemeral PR preview tags based on Git commit hashes and branch slugs (`pr-42-sha-8f3a1b`).
Input & Output Examples
Generating SemVer Tag Matrix for v2.4.1
Image: myrepo/app, SemVer: 2.4.1, Git SHA: 7c9a1d, Include Latest: true
Tags: [2.4.1, 2.4, 2, latest, sha-7c9a1d]\nCommand: docker build -t myrepo/app:2.4.1 -t myrepo/app:2.4 -t myrepo/app:2 -t myrepo/app:latest -t myrepo/app:sha-7c9a1d .
Key Features & Performance
- ✓Builds SemVer hierarchical tag suites: `major.minor.patch`, `major.minor`, `major`, and `latest`.
- ✓Supports Git commit SHA, branch slug, and timestamp tags.
- ✓Generates unified multi-tag `docker build` and `docker push` terminal scripts.
- ✓100% Client-Side generation.
- ✓1-Click Copy terminal commands.
Key Terminology & Definitions
Semantic Version Tagging (SemVer)
Publishing containers under `1.2.3`, `1.2`, and `1` so downstream users can subscribe to their desired level of stability.
Multi-Tagging
Attaching multiple tag aliases to a single image ID during `docker build` without duplicating image layer storage.
