How to pull layers one by one in Docker to avoid connection timeout?

The Docker daemon has a --max-concurrent-downloads option.
According to the documentation, it sets the max concurrent downloads for each pull.

So you can start the daemon with dockerd --max-concurrent-downloads 1 to get the desired effect.

See the dockerd documentation for how to set daemon options on startup.

Leave a Comment