image-cache Write-up can be found on medium Build $ docker build -t image-cache:v1 . Deploy $ docker service create --mode global --name nginx --with-registry-auth \ --publish published=80,target=80,mode=host \ image-cache:v1