7

We sometimes get Client.Timeout exceeded while awaiting headers errors when running docker-compose up as its pulling images.

Is there a way to get docker-compose to retry when it is pulling an image?

ClickThisNick
  • 5,110
  • 9
  • 44
  • 69

1 Answers1

1

Using only docker-compose, no.

The docker-compose command does not specifically exposes a flag for retrying pulling the images, but you can always use bash magic for that:

while ! docker-compose pull; do sleep .1; done && docker-compose up
Gustavo Kawamoto
  • 2,665
  • 18
  • 27