Create a custom image with Docker
Last updated: July 14, 2025
If you cannot use the default Liquibase Docker container image, you can create a custom image. You can either extend an existing Dockerfile or create a completely new image.
Extend Dockerfile
The best way to create a custom Docker image is to extend the Dockerfile to add whatever tools or drivers you want, such as a native executor. Then, publish your extended Dockerfile internally in your organization. For example, see /docker/examples, which contains both Alpine and non-Alpine Dockerfile examples.
To add a driver, see the "Drivers and extensions" section. Alternatively, you can use the Liquibase Package Manager (lpm
) to inject the driver into your container:
FROM liquibase:latest
RUN lpm add mssql --global
Then publish this custom Docker image internally. If you need to create a new image instead, follow the steps below.