Add LABEL field to acceptable metadata list

Signed-off-by: Sönmez Kartal <szkl89@gmail.com>
This commit is contained in:
Sönmez Kartal 2017-05-10 01:45:26 +03:00
parent 1d66ecf0f8
commit 56ec046fe5
No known key found for this signature in database
GPG Key ID: 908D2AAF7ED66753
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@ Example uses of all of the options, assuming one is building an NGINX image from
"ENV HOSTNAME www.example.com",
"VOLUME /test1 /test2",
"EXPOSE 80 443",
"LABEL version=1.0",
"CMD [\"nginx\", \"-g\", \"daemon off;\"]",
"MAINTAINER Captain Kirk",
"ENTRYPOINT /var/www/start.sh"
@ -96,6 +97,9 @@ Allowed metadata fields that can be changed are:
- EXPOSE
- String, space separated ports
- EX: `"EXPOSE 80 443"`
- LABEL
- String, space separated key=value pairs
- EX: `"LABEL version=1.0"`
- MAINTAINER
- String, deprecated in Docker version 1.13.0
- EX: `"MAINTAINER NAME"`