In the previous step, we successfully pushed the image to ECR, and in this step, we will push the image to Dockerhub.
docker logout
.docker login -u "your-docker-username"
.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.
Now, proceed to push this image to Dockerhub.
And check the result.
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.