Skip to content

Conversation

@calvinvette
Copy link

Allow the user to specify a command-line option to allow a custom short-name for docker/podman when launching ("up"-ing) a devcontainer.

Calvin Vette added 3 commits January 21, 2026 01:07
- Comprehensive build/lint/test commands including single test execution
- Code style guidelines covering TypeScript formatting, imports, naming conventions
- Error handling patterns using ContainerError class
- Testing guidelines with Mocha/Chai framework
- Project structure overview and development workflow
- Add --container-name CLI option to allow custom naming of dev containers
- Implement ephemeral storage for container name and ID in cache folder
- Set environment variables DEVCONTAINER_NAME, DEVCONTAINER_ID, and DEVCONTAINER_WORKSPACE
- Add --name parameter to docker run command when custom name is provided
- Create comprehensive unit tests for container naming functionality
- Update README.md with usage examples and documentation
- Store container info in <cache-folder>/container-info.json

This feature enables:
- Easy identification of dev containers with meaningful names
- Scripting and automation with predictable container names
- Environment variable access to container information
- Backward compatibility (custom name is optional)

Resolves: Improved developer experience with better container management
@calvinvette calvinvette requested a review from a team as a code owner January 21, 2026 07:02
@calvinvette
Copy link
Author

@microsoft-github-policy-service agree

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