Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Added test for labels with dockerfile #929

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.

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

Successfully merging this pull request may close these issues.

3 participants