Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Adding labels to containers build by devcontainer cli that are based on a Dockerfile (instead of an image) does not work

Open
#930 2 comments 5 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Dec 17, 2024.

Assessment

This issue has not been assessed yet.

Description

bug

A few months ago, the --label property to build was added that adds labels (https://github.com/devcontainers/cli/pull/846). Unfortunately it seems that this only works when a devcontainer is build that is based directly from an image. If it is based from a Dockerfile, the labels from --label are not added.
I added a test in a PR that shows the problem, see here: https://github.com/devcontainers/cli/pull/929

Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
18m
Merged PRs (30d)
5

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.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.