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

357
Visualizações
docker-compose where can I get a detail log (info) about what happened

I'm trying to pull and set a container with an database (mysql) with the following command:

docker-compose up

But for some reason is failing to start the container is showing me this:

some_db exited with code 0

But that doesn't give me any information of why that happened so I can fix it, so how can I see the details of that error?.

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

0

Instead of looking for how to find an error in your composition, you should change your process. With docker it is easy to fall into using all of the lovely tools to make things work seamlessly together, but this sounds like an individual container issue, not an issue with docker compse. You should try building an empty container with the baseimage you want then using docker exec -it <somecontainername> sh to go into it and run the commands you're trying to execute in your entrypoint manually to find the specific breakpoint.

over 4 years ago · Santiago Trujillo Relatório

0

Try at least docker logs <exited_container_name/id> (or more recently: docker container logs <exited_container_name/id>)

That way, you can check if there was any error message.

An exited container means the main process stopped: you need to make sure that main process remains up in order for the container to not exit immediately.

Try also docker inspect <exited_container_name/id> (or, again, docker container inspect <exited_container_name/id>)
If you see for instance "OOMKilled": true, that would mean the container memory was exceeded. You can also look for the "ExitCode" for clues.

See more at "Ten tips for debugging Docker containers" from Mark Betz.

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