# Keycloak Upgrade Docker Container From 18.0.2 to 21.0.2 With +200 Realms

**URL:** <https://forum.keycloak.org/t/keycloak-upgrade-docker-container-from-18-0-2-to-21-0-2-with-200-realms/26836>\
**Category:** Getting advice\
**Tags:** upgrading\
**Created:** [July 5, 2024, 2:01pm UTC](https://forum.keycloak.org/t/keycloak-upgrade-docker-container-from-18-0-2-to-21-0-2-with-200-realms/26836 "2024-07-05T14:01:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![borisnu](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/borisnu/32/10824_2.png) [@borisnu](https://forum.keycloak.org/u/borisnu)\
**Post date:** [July 8, 2024, 12:59pm UTC](https://forum.keycloak.org/t/keycloak-upgrade-docker-container-from-18-0-2-to-21-0-2-with-200-realms/26836/6 "2024-07-08T12:59:25Z")

</div>

UPDATE: Same solution worked from upgrading 20.0.5 to 21.0.2.

Config your quarkus.porperties with this variable:  
quarkus.transaction-manager.default-transaction-timeout=35M

Value can be adjusted, based on the size of the realms. 35M worked seamless with +400 realms. As well as more than +600, see: [Align `quarkus.transaction-manager.default-transaction-timeout` with storage lock timeouts · Issue #19453 · keycloak/keycloak · GitHub](https://github.com/keycloak/keycloak/issues/19453)

---

_[View the full topic](https://forum.keycloak.org/t/keycloak-upgrade-docker-container-from-18-0-2-to-21-0-2-with-200-realms/26836)._
