added a retry logic to the curl command to get docker