devcontainer: pin compose project name to note-arduino-notestation#163
Merged
zfields merged 1 commit intoblues:masterfrom Mar 8, 2026
Merged
Conversation
The devcontainer CLI derives the Docker Compose project name from the
directory name of the devcontainer.json file -- in this case 'notestation'.
Every Blues SDK repo uses the same folder name, so running two notestation
devcontainers simultaneously causes a project name collision: Docker Compose
sees the existing project and (with --no-recreate) reuses the wrong
containers and workspace mount.
Fix: use the Compose Specification 'name:' field to hard-code a unique
project name ('note-arduino-notestation') that is independent of the
directory. The devcontainer CLI respects this field and will not override
it with the derived name.
Also drops the deprecated 'version:' key in favour of plain Compose
Specification format.
Requires Docker Compose v2 (the 'docker compose' plugin). Docker Compose
v1 ('docker-compose') does not support the 'name:' field.
zfields
approved these changes
Mar 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The devcontainer CLI derives the Docker Compose project name from the directory name of the
devcontainer.jsonfile — in this casenotestation. Every Blues SDK repo uses the same.devcontainer/notestation/folder convention, so running two SDK notestation devcontainers simultaneously causes a project name collision.Concretely, the CLI invokes:
With
--no-recreate, if another SDK's notestation containers are already up under thenotestationproject, Docker Compose reuses them — attaching to the wrong workspace and image.Fix
Use the Compose Specification
name:field to hard-code a unique project name (note-arduino-notestation) directly in the compose file. The devcontainer CLI respects this and will not override it with the directory-derived name.The deprecated
version:key is also removed, as it is not used by the Compose Specification.Requirements
Docker Compose v2 (
docker composeplugin). Docker Compose v1 (docker-compose) does not support thename:field.Related
The same fix is being applied to note-posix and should be rolled out to all Blues SDK repos that ship a
notestationdevcontainer.