Skip to content

Added test for labels with dockerfile #929

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Roemer
Copy link

@Roemer Roemer commented Nov 7, 2024

This PR adds a test to add labels via cli to a devcontainer that is based on a Dockerfile. The test currently fails.

@johnitvn
Copy link

I have encountered this error in practice. Hope this error will be fixed soon.

@chrmarti
Copy link
Contributor

We are passing them on here for images:

...params.additionalLabels.length > 0 ? params.additionalLabels.map(label => ['--label', label]).flat() : [],

This is missing here:

It is also missing on the Docker Compose code path. Docker Compose doesn't add labels to the built images, it adds them to the containers.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants