Install via Docker
Run git-cliff in Docker containers without local installation.Quick Start
- Docker Hub
- GitHub Container Registry
Run git-cliff from Docker Hub:
Available Images
Docker images are available in two registries:| Registry | Image URL | Updates |
|---|---|---|
| Docker Hub | orhunp/git-cliff | Automated on release |
| GitHub CR | ghcr.io/orhun/git-cliff/git-cliff | Automated on release |
Available Tags
Images follow these tagging conventions:| Tag | Description | Example |
|---|---|---|
latest | Latest stable release | orhunp/git-cliff:latest |
X.Y.Z | Specific version (SemVer) | orhunp/git-cliff:2.7.0 |
main | Latest from main branch | orhunp/git-cliff:main |
sha-<short> | Specific commit SHA | orhunp/git-cliff:sha-954106f |
Usage Examples
Basic usage
Run in your git repository:This mounts your current directory to
/app/ in the container.Advanced Usage
- Shell Alias
- Docker Compose
- CI/CD Pipeline
- Makefile Integration
Create a convenient shell alias:Bash/Zsh:Then reload:Usage:
Building Custom Images
Build your own Docker image:Volume Mounting
Understanding volume mounts:Common Commands
Troubleshooting
Permission denied when writing files
Permission denied when writing files
The container runs as a specific user. Fix ownership:Or fix permissions after:
Git directory not found
Git directory not found
Ensure you’re mounting the git repository root:
Config file not found
Config file not found
Make sure the config file is in the mounted directory:
Image pull fails
Image pull fails
If pulling from Docker Hub fails, try GitHub Container Registry:Or authenticate with GitHub:
Windows path issues
Windows path issues
On Windows, use PowerShell:Or use WSL2:
Next Steps
Configuration
Learn how to configure git-cliff
CI/CD Integration
Automate with GitHub Actions