create new image id when tagging docker code example
Example 1: docker tag
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Example 2: update docker image name
docker rename | Docker Documentation
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
docker rename | Docker Documentation