we can pass a Binding when using pack or docker like this:

pack build --volume <absolute-path-to-binding>:/platform/bindings/<binding-name> <image-name>
docker run --env SERVICE_BINDING_ROOT=/bindings --volume <absolute-path-to-binding>:/bindings/<binding-name> <image-name>

How to do this with spring-boot-maven-plugin build:image

Comment From: scottfrederick

@uqix Thanks for the question. The equivalent of pack build --volume is planned for a future release of the Spring Boot build plugins. See #23518 for the details.