title: How to deploy Keycloak HA cluster in Docker
body: <p>I'm following <a href="http://blog.keycloak.org/2015/04/running-keycloak-cluster-with-docker.html" rel="nofollow noreferrer">http://blog.keycloak.org/2015/04/running-keycloak-cluster-with-docker.html</a> and when trying to run the first keycloak instance:</p>
  
  <pre><code>docker run --name postgres -e POSTGRES_DATABASE=keycloak -e POSTGRES_USER=keycloak -e POSTGRES_PASSWORD=password -e POSTGRES_ROOT_PASSWORD=password -d postgres
  
  docker run -p 8080:8080 --name keycloak --link postgres:postgres -e POSTGRES_DATABASE=keycloak -e POSTGRES_USER=keycloak -e POSTGRES_PASSWORD=password -d jboss/keycloak-ha-postgres
  </code></pre>
  
  <p>I am getting the error:</p>
  
  <pre><code>javax.resource.ResourceException: IJ031083: Wrong driver class [org.postgresql.Driver] for this connection URL [jdbc:postgresql://postgres:tcp://172.17.0.2:5432/keycloak]
  </code></pre>
  
  <p>Has anyone got experience using this <a href="https://hub.docker.com/r/jboss/keycloak-ha-postgres/" rel="nofollow noreferrer">Keycloak</a> Docker image? Or is there an easier way to deploy a Keycloak cluster to Docker?</p>