Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在作为拉取图像运行时,我们有时会Client.Timeout exceeded while awaiting headers出错。docker-compose up
Client.Timeout exceeded while awaiting headers
docker-compose up
有没有办法让 docker-compose 在拉取图像时重试?
仅使用docker-compose,不使用。
docker-compose
该docker-compose命令并未专门公开用于重试拉取图像的标志,但您始终可以为此使用 bash 魔法:
while ! docker-compose pull; do sleep .1; done && docker-compose up