1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/parser
Dan Walsh cdfdfbfb62 Allow specification of Label Name/Value pairs in image json content
Save "LABEL" field in Dockerfile into image content.

This will allow a user to save user data into an image, which
can later be retrieved using:

docker inspect IMAGEID

I have copied this from the "Comment" handling in docker images.

We want to be able to add Name/Value data to an image to describe the image,
and then be able to use other tools to look at this data, to be able to do
security checks based on this data.

We are thinking about adding version names,
Perhaps listing the content of the dockerfile.
Descriptions of where the code came from etc.

This LABEL field should also be allowed to be specified in the
docker import --change LABEL:Name=Value
docker commit --change LABEL:Name=Value

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
2015-03-13 09:47:09 -07:00
..
dumper builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
testfiles Merge pull request #9826 from icecrime/8318_whitespace_add_copy 2015-01-19 18:37:53 -05:00
testfiles-negative Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
json_test.go Adjust builder to validate that JSON in Dockerfiles are arrays of strings and nothing else to match how we describe them to people (and what all our existing tests already assumed) 2015-01-05 14:31:05 -07:00
line_parsers.go Allow specification of Label Name/Value pairs in image json content 2015-03-13 09:47:09 -07:00
parser.go Allow specification of Label Name/Value pairs in image json content 2015-03-13 09:47:09 -07:00
parser_test.go cleanup: simplify parser_test 2015-03-10 00:55:00 +01:00
utils.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00