Recent Comments
변군이글루
[Docker] Docker 컨테이너(Container) 커밋(Commit) 및 태그(tag) 명 변경 본문
Docker 컨테이너(Container) 커밋(Commit) 및 태그(tag)명 변경
Docker 컨테이너(Container) 커밋(Commit)
docker commit -a "postfix1" postfix
###컨테이너 ID 또는 NAMES 확인
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
978c84237f88 centos "/sbin/init" 41 minutes ago Up 41 minutes 0.0.0.0:25->25/tcp postfix
###도커 이미지 커밋
$ docker commit -a "postfix1" postfix
sha256:e33c19886c59df83a29e638de91a4fc1fe576bbc243f72ed9240581faed150b9
###도커 이미지 확인
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> e33c19886c59 5 seconds ago 341MB
Docker 이미지(image) 태그(tag)명 변경
docker image tag e33c19886c59 postfix:1.1
###도커 이미지 태그명 변경
$ docker image tag e33c19886c59 postfix:1.1
###도커 이미지 태그명 확인
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
postfix 1.1 e33c19886c59 2 minutes ago 341MB
'* 리눅스' 카테고리의 다른 글
[리눅스] rsync에서 ssh를 사용하여 파일 복사 (1) | 2020.12.14 |
---|---|
[linux] Fabric 라이브러리 설치 (0) | 2020.12.14 |
[Docker] Docker 컨테이너(Container) 커밋(Commit) 및 태그(tag) 명 변경 (0) | 2020.12.11 |
[CentOS 8] Postfix Mail Server 설치 및 구성 (1) | 2020.12.11 |
[리눅스] SSH root 접속 제한 (0) | 2020.12.10 |
[Linux] CentOS Yum Repository 서버 구축 (0) | 2020.12.10 |
0 Comments