Repository navigation
Open
Labels
enhancementNew feature or request
Description
Before submitting
- I have searched existing feature requests and discussions to confirm this has not been requested
Problem or motivation
When Devsy creates containers for the DevContainer, these are given a random name. Since some applications require the name of the container to connect, rebuilding the container breaks these applications, especially when these dev containers are ephemeral o receive multiple updates.
Proposed solution
Let the container be created (initially) with either a name derived from the host (My App → my-app) or a custom one by the developer (My App → my-custom-name).
Alternatives considered
Using docker rename <current_container_name_or_id> <new_container_name> and connect directly.
Area
Dev containers
Acceptance criteria
- When creating a new Dev Container, show the "container name" form: a select form with three options: By provider, derive from host, custom name.
- "By provider" should let the provider pick the name. Description should indicate naming hands-off to the provider.
- "Host name" should take the host derived name ("My app" →
my-app), and apply it as container name. - "Custom name" should show a hidden input to allow an
[0-9][a-Z]-_input that will be used to create the name. The input data should be discarded when this option is not selected. - Warn that not all providers may support custom names, or the name may change with prefix/suffix.
- Detect if the name is already being used by other containers of the provider selected. Deny the name with a validation error that explains the name collision.
- When editing the Dev Container on its page, show an input to change the name, and a button called "Rename" that renames the container.
- The input should be pre-filled with the container name.
- If the input is empty, the "Rename" should be disabled.
- If the name is already being used in the same provider, show a validation error for the collision.
- When Renaming, a popup should appear for the operation. Once completed, Devsy should update the container name (returned by the provider) internally everywhere is referenced. If the provider does not return the name, survey it using the container ID.
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity