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

Adding arbitrary metadata to containers #6839

Closed
rjnagal opened this issue Jul 3, 2014 · 8 comments
Closed

Adding arbitrary metadata to containers #6839

rjnagal opened this issue Jul 3, 2014 · 8 comments
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny

Comments

@rjnagal
Copy link
Contributor

rjnagal commented Jul 3, 2014

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)?

@bgrant0607
Copy link

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.

@bgrant0607
Copy link

Kubernetes is also planning to add non-identifying metadata, called annotations:
kubernetes/kubernetes#1201

It looks like another issue has been filed re. labels: #6997.

Kubernetes documentation of labels is now here:
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/labels.md

@bfirsh
Copy link
Contributor

bfirsh commented Nov 7, 2014

A proposal: #9013

@bfirsh
Copy link
Contributor

bfirsh commented Jan 14, 2015

A pull request: #9882

@jessfraz jessfraz added the kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny label Feb 27, 2015
@thaJeztah
Copy link
Member

@jfrazelle should this be closed, now that a design approval was given on #9882 ?

@jessfraz
Copy link
Contributor

jessfraz commented Mar 2, 2015

up to @rjnagal

@rjnagal
Copy link
Contributor Author

rjnagal commented Mar 2, 2015

#9882 is the real deal. Happy to close this one out :)

@rjnagal rjnagal closed this as completed Mar 2, 2015
@thaJeztah
Copy link
Member

Thanks @rjnagal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny
Projects
None yet
Development

No branches or pull requests

5 participants