Push image to Dockerhub

Push the Image to Dockerhub

In the previous step, we successfully pushed the image to ECR, and in this step, we will push the image to Dockerhub.

  • Log out (remove ECR credentials) from Docker using docker logout.
  • Then log in with docker login -u "your-docker-username".

3.2.1

List the existing images, and now we won’t rebuild the image but just add another tag for Dockerhub. After tagging, list the images again, and you will see the new tag has been added.

3.2.2

Now, proceed to push this image to Dockerhub.

3.2.3

And check the result.

3.2.4

So, we have successfully pushed the image to both ECR and Dockerhub. Now you can use the image from any registry to deploy the Frontend Service.