Skip to content

feat: use friendly DNS create names with hashed resource stems - #28

Merged
wcgomes merged 2 commits into
mainfrom
feat/friendly-container-name
Aug 15, 2026
Merged

feat: use friendly DNS create names with hashed resource stems#28
wcgomes merged 2 commits into
mainfrom
feat/friendly-container-name

Conversation

@wcgomes

@wcgomes wcgomes commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

Apple container create --name is the container id and DNS hostname. Create names are now the sanitized devcontainer.json name (folder/repo fallback) instead of adev-{base}-{hash12}.

  • Create --name is DNS / human identification only — no adev- prefix and no identity hash.
  • ${devcontainerId}, product *-ws volumes, and Features tags keep the hashed resource stem from folder/repo basename + hash. Config name does not participate.
  • rebuild creates the replacement under the live computed create name and keeps the same resource stem / workspace volume. Idle adev-* names stay until rebuild.
  • Foreign occupant of the desired name: TTY asks change the name? [Y/n], then a new full name; persist sanitized name and retry. Non-TTY/--json fail closed. Same-workspace leftover under a different name stays a delete-hint.
  • Success digest and JSON drop redundant containerName (Apple --name already is the id).
  • README tests badge bumped to 842+.

Commits

  • 33a3c02 feat: use friendly DNS create names with hashed resource stems
  • a77a4bc fix: omit redundant containerName from success digest and JSON

@wcgomes
wcgomes merged commit b732d78 into main Aug 15, 2026
1 check passed
@wcgomes
wcgomes deleted the feat/friendly-container-name branch August 15, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant