diff --git a/docker/keystone/keystone_bootstrap.sh b/docker/keystone/keystone_bootstrap.sh
index 15c1838db0073a3150f86131b6e0fe4c0b2a7cfa..0c0aa498d74ddc3474fd69cb12fe31805675b6cf 100644
--- a/docker/keystone/keystone_bootstrap.sh
+++ b/docker/keystone/keystone_bootstrap.sh
@@ -73,10 +73,16 @@ if [[ ! $(openstack --os-identity-api-version 3 --os-token "${OS_TOKEN}" --os-ur
     )
 fi
 
-get_token
+count=0
+while [[ ! "${OS_TOKEN}" && "${count}" -lt 5 ]]; do
+    get_token
+    ((count++))
+    sleep 1
+done
 if [[ ! "${OS_TOKEN}" ]]; then
-    fail_json "Unable to issue token"
+    fail_json "Unable to retrieve token after 5 attempts"
 fi
+
 create_service
 create_endpoints
 exit_json