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

A service top-level element equivalent for "docker run --label-file" argument #12311

Open
swonky opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@swonky
Copy link

swonky commented Nov 22, 2024

Description

The docker run command has a cli argument --label-file that allows you to pass a list of container labels using a line delimited file. It works much like the --env-file argument and its equivalent env_file compose element.

I can't find an equivalent compose element that can provide this functionality. My suggestion would be to implement something to the effect of a label_file service top-level element. It would be very helpful when compartmentalizing large compose files with many labels.

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

No branches or pull requests

2 participants