microsoft / microsoft/vscode-remote-release
Tagging DevContainer image
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hello, I use devcontainer from docker-compose. I found that the devcontainer doesn't use the image name and tag specified in the docker-compose file. Instead, it generates a too long random name. So, I would like to request to have control of that name.
My docker-compose:
version: '3.3'
services:
development:
build:
context: .
dockerfile: Dockerfile
image: imageName:tag
container_name: 'myContainer'
My devcontainer:
{
"name": "someName",
"dockerComposeFile": ["docker-compose.yml"],
// The name of the following service has to match one of the services in docker-compose.yml
"service": "myService",
"extensions": [.....],
"workspaceFolder": ".....",
"shutdownAction": "stopCompose"
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the setup using the shown docker-compose.yml, Dockerfile, and devcontainer configuration, first checking how the image and container names are generated. Confirm the expected naming behavior from the compose image name and tag, then verify the result with the same Dev Container workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, dockerfile
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100