trying to up keycloak with docker but it's not starting . Operation ("add") failed - address: trying to up keycloak with docker but it's not starting . Operation ("add") failed - address: docker docker

trying to up keycloak with docker but it's not starting . Operation ("add") failed - address:


One of the reasons why the Keycloak start-up might fail is that you missed to enable the upload scripts flag.

The flag is deprecated and is normally only necessary if you want to do a realm import via the admin interface but in my case it was also necessary to enable the flag if I wanted to start-up Keycloak with an import file. Otherwise the same exception would be thrown that you provided in the original question.

The start-up param for enabling the flag is: -Dkeycloak.profile.feature.upload_scripts=enabled

A small disclaimer here. As the documentation states this flag should not be continuously enabled. So just enable it for the initial import and persist your realm configuration in an external database.


I had this error while trying to run Keycloak in a docker-compose setup. My problem was caused because Keycloak was unable to connect to the database container. In fact keycloak startup logs were complaining about database connection problems few lines prior the error "... Operation ("add") failed ..."