push image to docker hub code example
Example 1: add image to docker hub
docker tag <name-of-image>:<tag> <hub-user>/<repo-name>:<tag>
docker push <hub-user>/<repo-name>:<tag>
Example 2: docker push image
$ docker tag rhel-httpd registry-host:5000/myadmin/rhel-httpd
$ docker push registry-host:5000/myadmin/rhel-httpd
Example 3: pushing image to docker hub
docker push yourhubusername/verse_gapminder
Example 4: docker push image to docker hub
docker push image to docker hub
Example 5: push image to docker hub
$ docker push <hub-user>/<repo-name>:<tag>