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 https://hub.docker.com/
sudo docker login
2.Tag Docker Image
sudo docker tag image-name username/image-name
Now if we will do sudo docker images it will show our new image that we have tagged above
3. Push Docker Image
sudo docker push username/image-name
Now go to your docker hub repository there will be a new image uploaded