how to upgrade keycloak docker from 7.0 to 9.01 min read
Hi All, this document shows you how to upgrade keycloak docker from 7.0 to 9.0.
Keycloak is an open-source software product to allow single sign-on with Identity Management and Access Management aimed at modern applications and services. As of March 2018, this JBoss community project is under the stewardship of Red Hat who use it as the upstream project for their RH-SSO product
Steps to Upgrade
Upgradation of keycloak applications is much simpler in the case of docker. There is no much complexity like how we do for binary deployments.
Step 1: Take a Backup of Databases, themes, and custom modules.
Step 2: Keycloak comes with Liquibase for managing DB versions. So when we update with the new docker image tag liquibase will detect the DB version and do the DB changes accordingly. Make sure that DB user has all the permission on the specific Database.
Stop the existing docker container and run the new container service with the latest image tag.
Step 3: wait for the container to be up. Now you have completed the up-gradation part.