Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
Docker says there is already a container with the same name that exists despite there are no containers

I do DOCKERADM_ENV=lab docker-compose -f docker-compose-mgmt.yml up -d since last week to test things and when I want to test something new I remove all the containers with docker rm $(docker ps -aq).

But now I can't make my docker-compose because :

ERROR: for mgmt-mongo Conflict. The name "/mgmt-mongo" is already in use by container 228f13fb40231043d3c532cc1fa40906eb4332722a6a69024fe6b9d0ceab8b40. You have to remove (or rename) that container to be able to reuse that name.

But when I do docker ps -a there is nothing.

You have an idea from where it could comes ?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

run this:

docker rm 228f13fb40231043d3c532cc1fa40906eb4332722a6a69024fe6b9d0ceab8b40

sounds like you have a an orphaned container or something like that... but Docker was kind enough to give you the id of the container, so you can just remove that container by its id.

over 4 years ago · Santiago Trujillo Relatório

0

The solution proposed by @TatsuyukiIshi works well, but I think is not necessary to restart the machine. For example, in windows you can go to Docker Settings and go to Reset option to Restart Docker:

Restart docker

The same should apply for other OSs

over 4 years ago · Santiago Trujillo Relatório

0

These kind of errors are often caused by Docker upgrades without stopping everything like running containers. A reboot will solve most cases.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda