dockerqnap

How to configure Docker max-concurrent-uploads on QNAP


How do I configure Docker on my QNAP TS-131P so that it only uploads one layer at time ?

I have a problem pushing an image because it is trying to push multiple layers concurrently and they keep failing because of a poor internet connection.

According to How to push single docker image layers at time? I need to configure daemon to use max-concurrent-uploads but I don't understand how I do this within the context of qnap.

[~] # docker -v
Docker version 17.09.1-ce, build a9fd393
[~] # which docker
/share/CACHEDEV1_DATA/.qpkg/container-station/bin/docker

Solution

  • After much digging,

    Looks like container-station is using same location as Linux systems for dockerd config file. Should work by adding a file:

    /etc/docker/daemon.json with:

    { "max-concurrent-uploads": 1 }

    from how-to-push-single-docker-image-layers-at-time

    Alternatively, if the script for starting up docker used by container station (/share/CACHEDEV1_DATA/.qpkg/container-station/script/run-docker.sh) has a line including dockerd, you could add the command line argument --max-concurrent-uploads=1 to that line.