How to rename Docker images without rebuilding it

+1 vote

Hi Guys,

I created one docker image, but I forgot to give some name, By default it has taken an anonymous name. Can someone tell me how can I rename docker image?

May 19, 2020 in Docker by akhtar
• 38,260 points
43,742 views

1 answer to this question.

0 votes
Best answer

Hi@akhtar,

You can rename your docker image by docker tag command. Use the below given command to do that.

$ docker tag OldName:tag NewName:tag

Hope this will help.

answered May 19, 2020 by MD
• 95,460 points

selected Dec 15, 2020 by MD
Using this tag name it creates another image with same image_id. I can see two image with different names but same image id.
for me below command worked

docker tag oldName newName:tag

Related Questions In Docker

0 votes
2 answers
+1 vote
2 answers
0 votes
1 answer

How to remove old Docker images?

Run the following command: docker $ (docker images ...READ MORE

answered Jul 17, 2018 in Docker by Sophie may
• 10,620 points
1,542 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,658 views
0 votes
1 answer

How to rename docker service in swarm?

Hi@akhtar, You can run the docker service update ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,460 points
3,879 views
+3 votes
12 answers

How to run multiple commands in docker at once?

In order to run multiple commands in ...READ MORE

answered Jul 19, 2018 in Docker by Sophie may
• 10,620 points
256,535 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP