Liquibase Docker Redshift Connection Error

When attempting to connect to Redshift from the latest liquibase/liquibase Docker image v4.17.0, Liquibase returns an error:

Unexpected error running Liquibase: Driver class was not specified and could not be determined from the url (jdbc:redshift://

This does not occur with the command-line version of Liquibase v4.17.0, the Redshift driver class is detected and connection works.

When the driver is specified and stored inside the container, Liquibase errors stating it cannot find the database driver, regardless of whether the driver class is specified as (as specified in the driver JAR) or (as specified in AWS docs):

Unexpected error running Liquibase: Cannot find database driver:

Unexpected error running Liquibase: Cannot find database driver:


FROM liquibase/liquibase:latest

ADD lib/redshift-jdbc42-
ADD lib/liquibase-redshift-4.17.0.jar


Commaned executed on container (excluding credentials, url, etc.): --classpath=lib/redshift-jdbc42-

Is there a way to connect from a Liquibase Docker container to Redshift?

ADD in the Dockerfile was extracting the .jar files. Switching to RUN wget fixed the issue.

1 Like