Before pushing, login into the docker hub account then try to push and the name of the container should be in the following format:
<dockerhub username>/<image-name>
Commands:
sudo docker login
sudo docker commit <container-id> -t <dockerhub username>/<image-name>
sudo docker push <dockerhub username>/<image-name>
This will help you to push your container to the docker hub.
For learning more about it, click on Docker Tutorial.