Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
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

about 4 years ago · Santiago Trujillo
1 answers
Answer question

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.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!