Adding retry clause in the event that docker inspect is called too
quickly and returns a PID of 0