Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Getting error "The container name is already in use by container "93b7…" (docker ps gives nothing)

I’m trying to run postgres docker:

docker run --name some-postgres -e POSTGRES_PASSWORD=123456 -d postgres

I’m getting error message:

docker: Error response from daemon: Conflict. The container name "/some-postgres" is already in use by container "93b72872c89cf7497872b0bc0e98d5a91078666945e3ca39ce5cbb36c436b5af". You have to remove (or rename) that container to be able to reuse that name.

I checked with:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

sudo docker ps

And there is nothing:

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

(Empty)

  1. so, why I’m getting this error message ?
  2. If the container name already exsits, How can I run it ?

>Solution :

Check this (shows all containers, includes stopped)

sudo docker ps -a

And then delete container

docker rm CONTAINER
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading