docker tag

1 개요[ | ]

docker / docker tag
도커 / docker tag
  • SOURCE_IMAGE 를 참조하는 TARGET_IMAGE 태그 생성

2 문법[ | ]

docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

3 예시 (ID 참조)[ | ]

john:~/docker$ docker image ls
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
friendlyhello               latest              2b6f3399daad        24 hours ago        132MB
ubuntu                      16.04               b9e15a5d1e1a        3 weeks ago         115MB
john:~/docker$ docker tag 2b6f3399daad friendlyhello:1.0
john:~/docker$ docker image ls
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
friendlyhello               1.0                 2b6f3399daad        24 hours ago        132MB
friendlyhello               latest              2b6f3399daad        24 hours ago        132MB
ubuntu                      16.04               b9e15a5d1e1a        3 weeks ago         115MB

4 예시 (이름 참조)[ | ]

john:~/docker$ docker image ls
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
friendlyhello               latest              2b6f3399daad        24 hours ago        132MB
ubuntu                      16.04               b9e15a5d1e1a        3 weeks ago         115MB
john:~/docker$ docker tag friendlyhello friendlyhello:1.0
john:~/docker$ docker image ls
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
friendlyhello               1.0                 2b6f3399daad        24 hours ago        132MB
friendlyhello               latest              2b6f3399daad        24 hours ago        132MB
ubuntu                      16.04               b9e15a5d1e1a        3 weeks ago         115MB

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}