microsoft / microsoft/vscode-remote-release

Tagging DevContainer image

Open
#7,093 3 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

containers feature-request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.