-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Adding arbitrary metadata to containers #6839
Comments
Support for Kubernetes-style labels (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/DESIGN.md#labels) would reduce the need to both embed lots of information in container names and/or to store the information in wrappers around Docker. |
Kubernetes is also planning to add non-identifying metadata, called annotations: It looks like another issue has been filed re. labels: #6997. Kubernetes documentation of labels is now here: |
A proposal: #9013 |
A pull request: #9882 |
@jfrazelle should this be closed, now that a design approval was given on #9882 ? |
up to @rjnagal |
#9882 is the real deal. Happy to close this one out :) |
Thanks @rjnagal! |
Following up from contributors' meeting today:
It would be nice to be able to store user-defined metadata for each container and be able to query on it. Higher-level tools and schedulers can use this metadata to better manage containers on a machine.
Something along the lines of
$ docker run --name foobar --metadata='key1:"value1"'
$ docker metadata foobar
$ docker metadata -a (for all containers)
There are multiple existing issues around metadata, but we couldn't find one thats about arbitrary metadata/labels applied to a container (#2336 talks about metadata originating from within the container).
We talked about using environment variables, but we need metadata that needs to be dynamically updated and added after a container start. eg. Scheduling metadata can be applied when a container is stopped or restarted.
Calling it a label seems to collide with image labels that are static. Using metadata can be confusing too, as containers already have metadata.
Any thoughts on what we'd like to see here (or not)?
The text was updated successfully, but these errors were encountered: