How to push single docker image layers at time?

前端 未结 3 1051
南方客
南方客 2021-02-02 09:16

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 [====>         


        
相关标签:
3条回答
  • 2021-02-02 09:28

    In my Ubuntu, I added /etc/docker/daemon.json with:

    {
      "max-concurrent-uploads": 1
    }
    

    and then sudo service docker restart. Worked like a charm.

    0 讨论(0)
  • 2021-02-02 09:30

    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

    0 讨论(0)
  • 2021-02-02 09:31

    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.

    0 讨论(0)
提交回复
热议问题