I use a docker machine to emulate different "hosts" in my development environment.
This is what I did to find out what is going on at this stage of the “Preparation” for my services:
docker service ps <serviceName>
You should see the nodes (machines) where your service was supposed to start. Here you will see the message "Preparation".
Use the ssh dock machine to connect to a specific machine:
docker-machine ssh <nameOfNode/Machine>
Your invitation will change. You are now inside another machine. Inside this other machine, do the following:
tail -f /var/log/docker.log
You will see a demon log for this machine. There you will see if this particular daemon does "pull" or what it does in preparation for the service. In my case, I found something like this:
time="2016-09-05T19:04:07.881790998Z" level=debug msg="pull progress map[progress:[===========================================> ] 112.4 MB/130.2 MB status:Downloading
Which made me realize that it was just downloading some images from my docker account.
source share