1. Docker Registry
registry 띄우기
$ docker run -d -p 5000:5000 --name registry registry
my-image를 띄운 registry를 바로보도록 tagging
$ docker tag my-image:v1.0.0 localhost:5000/my-image:v1.0.0
my-image를 registry에 push
$ docker push localhost:5000/my-image:v1.0.0
정상적으로 push 되었는지 확인
$ curl -X GET http://localhost:5000/v2/_catalog
2. Docker Hub
Login
$ docker login
Docker Hub를 바라보도록 tag 생성
$ docker tag my-image:v1.0.0 gisanglee/my-image:v1.0.0
Docker Image push to docker hub
$ docker push gisanglee/my-image:v1.0.0