Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

Everytime I run the below command to run a docker registry I get an error

dev:tmp me$ 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 f9e5798a82e0. You have to delete (or rename) that container to be able to reuse that name.

How can i stop this error from happening?

1 Answer

0 votes
by (6.9k points)

This can be a bit confusing , so it's okay. 

Two commands can help you out here , these ones :

$ docker run this will start fresh new container.

$ docker start this will start one or all of the stopped containers.

The issues here is that you already have a container running with the name "registry-v1

check out all the processes running using this command :

$ docker ps -a

Once you find the container with the same name running delete it using the command :

$ docker rm -f [ name of the container ]

Then you can push the container you are trying to run. You should not get the same error again.

Hope this helped :)


I can see that you are new to Docker , but that's okay every one is beginner at some point. You should check out docker training course for getting trained by industry professionals.

Browse Categories

...