Posted By: Anonymous
I’m trying to change repository name of the image:
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE server latest d583c3ac45fd 26 minutes ago 685.5 MB
Hence I want to change the name
server to something like
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE myname/server latest d583c3ac45fd 26 minutes ago 685.5 MB
How can I do this?
docker image tag server:latest myname/server:latest
docker image tag d583c3ac45fd myname/server:latest
Tags are just human-readable aliases for the full image name (
So you can have as many of them associated with the same image as you like. If you don’t like the old name you can remove it after you’ve retagged it:
docker rmi server
That will just remove the
d583c3ac45fd has other names, the actual image won’t be deleted.