How to tell docker run to run the latest image from docker hub?

Im using the following command to run an image off docker hub

docker run -it -e "SPRING_PROFILES_ACTIVE=localdocker" -p 8080:8080  name/repo:8 /bin/bash

Two questions:

  1. First of all, is there a way to not have to keep increment the number next to the repo each time CI uploads a new image? Is there a way to say just run the latest?
  2. What is the command to run if I want to stop the current instance and instead restart it with a newer image from the hub?

Source: StackOverflow