update-container-images
Skill6.3k starsChanged 6 months agoMITView on GitHub
Updates Docker container image tags used by Aspire hosting integrations. Queries registries for newer tags, uses LLM to determine version-compatible updates, and applies changes. Use this when asked to update container image versions.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/aspire
- Azure/azure-functions-core-tools“azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob”GitHub · Aug 9, 2026 · 18 reactions
- apple/container“[Request]: `cp` command tar stream support”GitHub · Jul 6, 2026 · 6 reactions
- CommunityToolkit/Aspire“Add Dekaf Kafka client integration and Schema Registry hosting support”GitHub · Sep 21, 2026 · 2 reactions
- thomhurst/TUnit“chore(deps): update aspire to 13.5.2”GitHub · Aug 21, 2026 · 2 reactions
- kubernetes-client/csharp“UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during …”GitHub · Jun 22, 2026 · 2 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Bluesky (20 times).
On GitHub · 18
- Aug 9, 2026azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob — Azure/azure-functions-core-tools18 reactions · 11 comments
- Jul 6, 2026[Request]: `cp` command tar stream support — apple/container6 reactions · 2 comments
- Sep 21, 2026Add Dekaf Kafka client integration and Schema Registry hosting support — CommunityToolkit/Aspire2 reactions
- Aug 21, 2026chore(deps): update aspire to 13.5.2 — thomhurst/TUnit2 reactions · 3 comments
- Jun 22, 2026UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during cancellation — kubernetes-client/csharp2 reactions · 2 comments
13 more on GitHub
- Jun 17, 2026chore(deps): update aspire monorepo to 13.4.5 — chrismeller/archiveteam-exporter2 reactions
- Jun 11, 2026chore(deps): update aspire monorepo to 13.4.3 — chrismeller/archiveteam-exporter2 reactions · 1 comment
- May 19, 2026chore(deps): update aspire monorepo to 13.3.4 — chrismeller/archiveteam-exporter2 reactions
- Sep 26, 2026Update Aspire version to 13.6.0 Staging Channel — CommunityToolkit/Aspire1 reaction · 5 comments
- Sep 8, 2026This PR merges the `release/13.5` branch back to `main` after the v13.5.0 release. — cli/cli1 reaction · 1 comment
- Aug 24, 2026Azure.Provisioning.AppContainers uses incorrect default naming requirements for managed environments — Azure/azure-sdk-for-net1 reaction
- Aug 6, 2026safe-outputs checkout auto-detection downgrades contents: write to read — github/gh-aw1 reaction
- Jun 15, 2026deps: Update aspire monorepo to 13.4.6 — ANcpLua/DotNetTests1 reaction
- May 26, 2026safe_outputs add_comment hard-fails on locked source PR (pr-docs-check recurring failures) — github/gh-aw1 reaction
- May 24, 2026"Install the Aspire Templates" section should be clear it's referring specifically to `dotnet` — microsoft/aspire.dev1 reaction · 1 comment
- May 13, 2026Azure.Provisioning.ContainerService: ManagedClusterIngressProfile is internal, blocking preview-API gatewayAPI and applicationLoadBalancer additions — Azure/azure-sdk-for-net1 reaction · 3 comments
- May 12, 2026Application Insights is filled with EventProcessor.Process logs that cannot be filtered out when OpenTelemetry enabled — Azure/azure-functions-host1 reaction
- Apr 16, 2026End2End template with Foundry Hosted Agents — leslierichardson95/aspire-agent-template1 reaction · 3 comments
On Bluesky · 2
- Mar 23, 2026.NET Aspireはコードファーストで拡張性のある分散アプリ開発を統一的に支援するツール群らしい コードでサービスやリソースを定義してローカルデバッグからデプロイまでこなせるのが便利そうかな yug1224 starred microsoft/aspire… — @yug1224.com1 likes and repost
- Mar 22, 2026📦 microsoft / aspire ⭐ 5,662 (+72) 🗒 TypeScript Aspire is the tool for code-first, extensible, observable dev and deploy. — @github-trending-js.bsky.social1 likes and repost
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-reviewSkill
- azdo-internalSkill
- backport-prSkill
- bump-aspire-versionSkill
- ci-test-failuresSkill
- cli-channel-debuggingSkill
- cli-e2e-testingSkill
- code-reviewSkill
- connection-propertiesSkill
- create-prSkill
- dashboard-testingSkill
- dependency-updateSkill
- deployment-e2e-testingSkill
- deprecate-integrationSkill
- fix-flaky-testSkill
- hex1bSkill
- hosting-integration-authoringSkill
- issue-investigationSkill
- pr-testingSkill
- reviewing-aspire-architectureSkill
- startup-perfSkill
- test-managementSkill
- vscode-extensionSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Run the companion script from the repository root to generate a JSON report of all images and their available tags:
- Distinctive: line 72
Check stderr for any failures:
- Very specific: line 78
All registries should report a tag count.
- Very specific: line 82
Read the generated update-tags-report.json.
- Very specific: line 127
Do cross major version boundaries: If Postgres is at 17.8 and 18.2 exists as an M.m tag, update to 18.2.
- Distinctive: line 137
Check the source file for comments about known issues.
- Distinctive: line 143
If such a comment exists, stay within the noted version range (e.g., v2.5.x for Milvus) unless you can verify the issue is resolved.
- Distinctive: line 153
Before applying changes, present a summary table to the user:
- Distinctive: line 163
Wait for user confirmation before proceeding.
- Distinctive: line 196
All projects must build successfully.
- Distinctive: line 221
Always confirm with the user: before applying changes
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a specialized container image update agent for the microsoft/aspire repository. Your primary function is to update the Docker container image tags used by Aspire hosting integrations to their latest compatible versions.
Background
Aspire hosting integrations pin specific Docker image tags in *ImageTags.cs files (e.g., SeqContainerImageTags.cs, RedisContainerImageTags.cs). These tags ensure the Aspire orchestrator uses known-compatible container images at runtime. Tags are intentionally pinned (never latest) and require periodic manual updates — roughly monthly.
Image Tag File Structure
Each *ImageTags.cs file follows this pattern:
internal static class RedisContainerImageTags
{
/// <remarks>docker.io</remarks>
public const string Registry = "docker.io";
/// <remarks>library/redis</remarks>
public const string Image = "library/redis";
/// <remarks>8.6</remarks>
public const string Tag = "8.6";
}Some files contain multiple image definitions (primary + companion tools) using field name prefixes:
// Primary image: Registry, Image, Tag
// Companion: PgAdminRegistry, PgAdminImage, PgAdminTagRegistries
The repository uses 5 container registries:
| Registry | Domain | Auth |
| Docker Hub | docker.io | Anonymous (Hub REST API) |
| Microsoft Container Registry | mcr.microsoft.com | Anonymous (OCI v2) |
| GitHub Container Registry | ghcr.io | Anonymous token |
| Oracle Container Registry | container-registry.oracle.com | Anonymous token |
| Quay.io (Red Hat) | quay.io | Anonymous (OCI v2) |
Companion Script
A single-file C# script is bundled at .agents/skills/update-container-images/UpdateImageTags.cs. It discovers all *ImageTags.cs files, parses them, queries each registry for available tags, and outputs a structured JSON report. This script handles the deterministic work; the LLM handles version analysis.
Understanding User Requests
This skill is typically invoked with one of:
- "Update container images" — full sweep of all images
- "Update Docker image tags" — same as above
- "Check for container image updates" — report only, don't apply
Task Execution Steps
Step 1: Run the Tag Fetcher Script
Run the companion script from the repository root to generate a JSON report of all images and their available tags:
cd <repo-root>
dotnet run .agents/skills/update-container-images/UpdateImageTags.cs 2>update-tags-stderr.txt 1>update-tags-report.jsonCheck stderr for any failures:
cat update-tags-stderr.txtAll registries should report a tag count. If any show FAILED, investigate the error (usually auth or network issues) before proceeding.
Step 2: Analyze the JSON Report
Read the generated update-tags-report.json. The report structure is:
{
"images": [
{
"file": "src\\Aspire.Hosting.Redis\\RedisContainerImageTags.cs",
"entries": [
{
"registry": "docker.io",
"image": "library/redis",
"currentTag": "8.6",
"availableTags": ["8.6", "8.4", "8.2", "9.0", ...]
}
]
}
]
}Entries marked with "skipped": true should be ignored (they are latest tags or derived/computed tags).
The script handles comprehensive tag discovery automatically — for Docker Hub images it queries both recent tags and version-prefix-based queries to ensure newer major/minor versions are included in the results.
Step 3: Determine Version Updates
For each image, apply these version analysis rules:
Rule 1: Match the Version Format (Precision)
The new tag must use the same version format as the current tag:
| Current Tag Format | Example | Match Pattern | Do NOT pick |
M.m (2-part) | 8.2 | 8.6, 9.0 | 8.6.1, v8.6 |
M.m.p (3-part) | 9.9.0 | 9.12.0, 10.0.0 | 9.12, v9.12.0 |
vM.m.p (v-prefix 3-part) | v1.15.5 | v1.16.3, v2.0.0 | 1.16.3, v1.16 |
vM.m (v-prefix 2-part) | v2.5 | v2.6, v3.0 | v2.5.1, 2.5 |
YYYY.N (year.seq) | 2025.2 | 2025.3, 2026.1 | 2025.2.15571 |
M.m.p.b (4-part) | 23.26.0.0 | 23.26.1.0 | 23.26.1 |
YYYY-suffix | 2022-latest | 2025-latest | 2022-CU23 |
M.m.p-pre.N | 2.3.0-preview.4 | 2.3.0-preview.5 | 2.3.0, 2.3-preview |
Rule 2: Cross Major Versions
Do cross major version boundaries. If Postgres is at 17.8 and 18.2 exists as an M.m tag, update to 18.2. The goal is to pick the newest tag that matches the same format.
Rule 3: Filter Out Platform Suffixes
Ignore tags with platform suffixes like -alpine, -bookworm, -amd64, -arm64, -fpm, -management-alpine, etc. Only consider "bare" tags matching the version format.
Exception: Tags like 4.2-management in RabbitMQ are derived/computed from the base Tag field and will be flagged as "isDerived": true in the report. Skip these — they auto-update when the base tag is updated.
Rule 4: Respect Known Issues
Check the source file for comments about known issues. For example, Milvus has:
// Note that when trying to update to v2.6.0 we hit https://github.com/microsoft/aspire/issues/11184If such a comment exists, stay within the noted version range (e.g., v2.5.x for Milvus) unless you can verify the issue is resolved.
Rule 5: Skip Non-Updatable Tags
- Tags set to
"latest"— cannot be version-bumped - Tags set to
"vnext-latest"— not a version scheme - Derived/computed tags (e.g.,
$"{Tag}-management") — updated automatically
Step 4: Present Update Summary
Before applying changes, present a summary table to the user:
| Image | Current | New | Notes |
|-------|---------|-----|-------|
| library/postgres | 17.8 | 18.2 | Major version bump |
| qdrant/qdrant | v1.15.5 | v1.16.3 | Minor + patch bump |
| library/redis | 8.6 | 8.6 | Already latest |Wait for user confirmation before proceeding. If the user wants to skip specific updates, honor that.
Step 5: Apply Changes
Edit each *ImageTags.cs file to update both the tag value and its <remarks> XML comment:
// Before:
/// <remarks>17.6</remarks>
public const string Tag = "17.6";
// After:
/// <remarks>18.2</remarks>
public const string Tag = "18.2";Always update both the <remarks> and the string literal — they must stay in sync.
Step 6: Validate Build
Build all affected projects to ensure the changes compile:
# Restore first if needed
./restore.cmd # Windows
./restore.sh # Linux/macOS
# Build each affected project
dotnet build src/Aspire.Hosting.Redis/Aspire.Hosting.Redis.csproj --no-restore -v q /p:SkipNativeBuild=true
dotnet build src/Aspire.Hosting.PostgreSQL/Aspire.Hosting.PostgreSQL.csproj --no-restore -v q /p:SkipNativeBuild=true
# ... repeat for each modified projectAll projects must build successfully. If any fail, investigate whether it's related to the tag change (it shouldn't be — these are just string constants).
Step 7: Summarize Results
Present a final summary:
## Container Image Tag Updates
Updated 15 tags across 12 files:
| File | Field | Old Tag | New Tag |
|------|-------|---------|---------|
| PostgresContainerImageTags.cs | Tag | 17.6 | 18.2 |
| PostgresContainerImageTags.cs | PgAdminTag | 9.9.0 | 9.12.0 |
| ... | ... | ... | ... |
Unchanged (already latest): 14 entries
Skipped (latest/derived): 6 entries
Build: ✅ All affected projects compileImportant Constraints
- Always run the companion script first — don't try to manually query registries or guess versions
- Always confirm with the user before applying changes
- Always update both
<remarks>and string literal in sync - Always build after applying to verify changes compile
- Never update
latesttags — they are intentionally unpinned - Never add more precision to a tag (e.g., don't change
8.6to8.6.1) - Never remove precision from a tag (e.g., don't change
v1.16.3tov1.16) - Check for comments about known issues before updating an image
- Clean up temporary files (
update-tags-report.json,update-tags-stderr.txt) after completing
Troubleshooting
Registry Query Failures
- Oracle
401 Unauthorized: The script needs to acquire a token fromhttps://container-registry.oracle.com/auth. If this fails, Oracle may be experiencing issues — skip and flag for manual review. - Docker Hub rate limits: Unauthenticated Docker Hub requests are limited to 100/6hr. The ~15-20 queries should be well within limits.
- GHCR token failures: GHCR anonymous tokens occasionally fail. Retry once before flagging.
Version Confusion
Some images use non-standard versioning:
- Seq: Uses
YYYY.Nformat (e.g.,2025.2), but also has build-number tags like2025.2.15571— ignore the build-number variants - Oracle: Uses 4-part versioning (
23.26.1.0) — all 4 parts are significant - SQL Server: Uses
YYYY-latestrolling tags — look for newer year-based rolling tags - Milvus: Has a known blocking issue preventing update to v2.6.x — stay on v2.5.x
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

