Search This Blog

Friday, February 23, 2018

How to push an images to docker hub ?


$sudo docker images   //  will list the images 

$ docker tag imagename docker.io/<DockerHub user name>/imagename:latest
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: <Dockerhub user name>
Password:
Login Succeeded
$ docker push docker.io/<DockerHub user name>/imagename:latest

will start pushin 

5cc248435d3e: Pushing [===>                                               ] 47.67 MB/635.9 MB
91f90aafa90e: Pushed
f2da66f301b3: Pushed
31239d164b59: Pushing [==================================================>] 219.1 MB
5f70bf18a086: Pushed
510c99acb643: Pushing [===========>                                       ] 81.45 MB/360 MB
82d954ed02ea: Pushing [==========================>                        ] 104.6 MB/197.2 MB
06a934ef2bcb: Pushing [=================>                                 ] 4.739 MB/13.72 MB



No comments:

Post a Comment