You need to first tag your image before pushing
docker tag firstimage YOUR_DOCKERHUB_NAME/firstimage
and then you can push it.
docker push YOUR_DOCKERHUB_NAME/firstimage
also, do log in from the command line to your docker hub account
Here go through the following link there is a video that helps you to understand better.