microsoft / microsoft/aspire

Use unique Docker volumes for isolated AppHost instances

Open
#19,356 1 comment 0 reactions 0 assignees View on GitHub
area-app-model area-integrations triage:bot-seen
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is your feature request related to a problem? Please describe the problem.

Isolated mode randomizes ports and copies user secrets into an isolated store, but AppHost instances can still use the same Docker volume names. Running isolated instances concurrently, particularly from multiple git worktrees, can therefore share state or conflict through the same volumes.

### Describe the solution you'd like

Docker volumes used by an AppHost should have instance-unique names when running in isolated mode. Each isolated instance should receive independent volume state so it can run concurrently without affecting another checkout or instance. Explicitly external or intentionally shared volumes should retain a way to opt into sharing.

### Additional context

I searched the existing issues and did not find one covering Docker-volume isolation for isolated AppHost runs.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how AppHost isolated mode derives instance identity and how Docker volume names are assigned. Verify concurrent isolated runs use distinct names while explicitly external or intentionally shared volumes can still opt into sharing; the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.