Hi,
as far as I understand, every Docker image contains a JSON field called "
comment".
One can inspect this field by typing "
docker inspect IMAGE_NAME".
At first I wondered how one can set this JSON field and found out that it can be set by running "
docker commit --message=...".
If I'm not mistaken, this is the
only way to set it.
I propose to introduce this "--message" flag for the "
docker build" command as well. Then the resulting image that is being build will carry a comment.
Now, I understand that there's the idea to solve this by adding a "
DESCRIPTION" command to the Dockerfile (see
Pull-Request #6667).
In this commit I quickly sketeched out how I would go about adding a "
--message" option to the "
docker build" command:
https://github.com/kwk/docker/commit/3277baf5cdd65788614dbaf2ac207a42b5acc65cPlease, let me know what you think.
Are there any other ways or plans to add some descriptive text to an image?
Thank you!