You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[proposal] Support for container name option in devcontainer.json #184
For ease of identification, we have a case to name the container at runtime.
It is helpful if there is an option like container_name as in docker-compose.
Current:
{
"name": "some-name-here", // This is not used for container name"runArgs": ["--name", "${localWorkspaceFolderBasename}"], // Use WS basename for example...
}
Proposed:
{
"name": "some-name-here",
"container_name: "${localWorkspaceFolderBasename}", // Field name comes from docker-compose ...}
Activity
samruddhikhandale commentedon Jan 19, 2023
Hi 👋
I agree, it is a good feature request.
Are you aware of the
--id-labelflag for thedevcontainer upcommand? In the meanwhile, it could help name the devcontainer.exhuma commentedon Sep 15, 2023
Unfortunately the
--id-labelis not exposed in thedevcontainer.jsonfile.