Docker Push Image To Repository

We will push our own created custom image to our docker repository in docker hub, which provides us the facility to push, pull docker images. To push images to docker repository please follow the steps mentioned here:-

1.  Login to

sudo docker login

docker login

2.Tag Docker Image

sudo docker tag image-name username/image-name 

Tag Docker Image

Now if we will do sudo docker images it will show our new image that we have tagged above

docker images

3. Push Docker Image

sudo docker push  username/image-name  

Push Docker Image

Now go to your docker hub repository there will be a new image uploaded

new images uploded in docker hub

Subscribe Now