An image does not exist locally with the tag
// Build an image with souce image tag and version.
docker build -t firstimage:version
// Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker tag firstimage:version YOUR_DOCKERHUB_NAME/firstimage:version
// Push your TARGET_IMAGE to your docker hub repository
docker push YOUR_DOCKERHUB_NAME/firstimage:version