본문 바로가기
Infra/Docker_K8S

Dockerfile 작성법9 - LABEL

by 골든크랩 2022. 7. 31.
728x90
반응형

 

저작권등을 표시

 

root@template:~/Lab# cat Dockerfile.10
FROM centos:7
LABEL maintainer "dennis <dennis1111111111111@gmail.com>"
LABEL title "TEST Image"
LABEL version 1.0
LABEL description "This image is test image ^__^"

 


root@template:~/Lab# docker   build   -t   myimage:2.0    -f  Dockerfile.10  .
Sending build context to Docker daemon  198.7kB
Step 1/5 : FROM centos:7

 


root@template:~/Lab# docker   image   inspect    myimage:2.0
[
    {


            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "description": "This image is test image ^__^",
                "maintainer": "dennis <dennis1111111111111@gmail.com>",
                "org.label-schema.build-date": "20201113",
                "org.label-schema.license": "GPLv2",

728x90
반응형

댓글