Running the docker registry with below command always throws an error:
dev:tmp me$ docker run \\
-d --name registry-v1 \\
-e SETTINGS_
Cause
A container with the same name is still existing.
Solution
To reuse the same container name, delete the existing container by:
docker rm
Explanation
Containers can exist in following states, during which the container name can't be used for another container:
createdrestartingrunningpausedexiteddeadYou can see containers in running state by using :
docker ps
To show containers in all states and find out if a container name is taken, use:
docker ps -a