This is how you would use the docker tag command to add a new name to an existing image:
sudo docker tag d583c3ac45fd myname/server:latest
In this command, d583c3ac45fd is the current image identifier and it assigned a new name myname/server along with the latest tag.
So after executing this command you can verify change by running the following:
sudo docker images
It shows you the list of images, and here you will find the name of the repository updated for your image. This is efficient in organizing images especially when preparing them for deployment or sharing on Docker Hub.