Add waiting for docker daemon

Add waiting for docker daemon as it
still may not start listening on its
socket before docker container building
starts

Change-Id: I76cfd4c1864d6cded633da6942c2958fee546d1a
Closes-Bug: #1315865