This commit adds configuration to the Maven and Gradle plugins to allow specifying the network mode to be provided to the image building goal and task. This behavior is equivalent to the "pack --network ..." option.
Fixes gh-25876
Comment From: snicoll
Thanks for the PR. Regarding https://github.com/spring-projects/spring-boot/issues/25876#issuecomment-886058369, the reference documentation of both plugins are located in src/docs/asciidoc
and building the module also generates the doc in build/docs/asciidoc
.
Comment From: Meijuh
@snicoll allright I can add it there np.
Comment From: Meijuh
@snicoll the docs have been added.
Comment From: scottfrederick
@Meijuh Thank you for the contribution. I've merged it along with a commit that polishes a few small items and adds integration tests for the new feature.