Fixed waitForDocker() method in Azure backend

Fixed waitForDocker() method in Azure backend