I just want to point out: My internet connection sucks. So I\'ve started pushing a new image, the scenario is something like this:
b57ecdb750f2: Pushing [====>
In my Ubuntu, I added /etc/docker/daemon.json
with:
{
"max-concurrent-uploads": 1
}
and then sudo service docker restart
. Worked like a charm.
As of this writing (on macOS), if you have the docker daemon running, open Preferences -> Daemon -> Advanced and include the json-like config:
...
"max-concurrent-uploads": 1
Making sure your json syntax is correct then click Apply & Restart
Then subsequent docker pushes will only try to push one layer at a time
You can specify a limit on concurrent layer uploads with a daemon flag. See the documentation here.
You need to set --max-concurrent-uploads
when running the daemon.