Docker push and pull

December 12, 2020    Docker & Git

Docker push and pull

  • Container를 이미지로 변환후 hub에 올리는 내용입니다.


1) Check the container

$ docker ps --all


2) Commit

  • docker commit [container name] [image name to save]
$ docker commit seg_rec fashion:TTA 


3) Login

$ docker login
username
pwd


4) Push

$ export DOCKER_ID_USER="donghwa89"
$ docker tag fashion:TTA $DOCKER_ID_USER/fashion
$ docker push $DOCKER_ID_USER/fashion


5) Pull

$ docker pull donghwa89/fashion

DSBA