Docker Community Forums

Share and learn in the Docker community.

Avoiding image download on all hosts of a swarm?


(Ashriths) #1

I have a basic swarm setup with around 6 nodes. Whenever I run a container for a new image or execute docker pull from the swarm manager it pulls the image on all hosts which is choking my network and using disk space on all hosts.

Is there a configuration which can be tweaked to avoid download on all hosts. Its enough if it downloads the image to the host it selects to deploy the container right ?

Any help would be appreciated.


(Nathan Le Claire) #2

I’m not sure if it will help with first-time service create but you might want to use docker service create --update-delay

--update-delay duration          Delay between updates