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

189
Visualizações
Change Docker backoff time

There is a foreground process in a docker container. It depends on other service (Kafka), so if Kafka fails to start, container fails to start as well.

Docker tries to restart container after 30 seconds, then 1 minute, then 2 minutes, then 4, 8, 16, 32 etc (approximately numbers).

So when I turn outer service back, docker container does not start automatically, instead it waits for these 32, 64 minutes, and that's too much.

Is there any way to change this behavior, for example, to be linear - restart attempts every 1 minute?

PS. I use docker-compose.yml (v2) and set option restart: always

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

0

There is an open issue on GitHub requesting an upper bound on the restart time, as well as, this SO post from early last year indicating that what you want is currently not possible.

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