How do I fix this error docker run --- name xyz is already in use by container

0 votes

Executing docker with the following command always lands an error:

$ docker run \

     -d --name registry-v1 \

     -e SETTINGS_FLAVOR=local \

     -e STORAGE_PATH=/registry \

     -e SEARCH_BACKEND=sqlalchemy \

     -e LOGLEVEL=DEBUG \

     -p 5000:5000 \

     registry:0.9.1
Error response from daemon: Conflict. The name "registry-v1" is already in use by container g6e5398a82a0. You have to delete (or rename) that container to be able to reuse that name.

How to get rid of this error?

Jul 17, 2018 in Docker by Tyrion anex
• 8,700 points
12,045 views

1 answer to this question.

0 votes
This is due to a confusion. There are two commands that are relevant here:

docker run - Runs a command in a new container

docker start - Starts a stopped container
answered Jul 17, 2018 by Sophie may
• 10,620 points

Related Questions In Docker

+1 vote
2 answers

How do I run a docker image as a container?

You can run an image depends on whether you ...READ MORE

answered Sep 7, 2018 in Docker by Damon Salvatore
• 5,980 points
1,599 views
0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

answered Jun 19, 2018 in Docker by shubham
• 7,340 points
1,498 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,713 views
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 59,230 points
12,673 views
0 votes
3 answers

How do I run Windows 7 in docker?

How To Install Docker on Windows 7/8/10 Home and Pro Get ...READ MORE

answered Aug 25, 2020 in Docker by Pistle
• 1,000 points
6,347 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