specify "–network=host" using spring-boot:build-image

Published

I’ve been using docker build this way:
docker build --network host -t foo/bar

But now I’m trying to make use of spring-boot:build-image

mvn spring-boot:build-image -Dspring-boot.build-image.imageName=foo/bar

but this way --network option is not provided. Unfortunately didn’t find a way how to properly provide the option.

Question: How can I provide --network with spring-boot:build-image (assuming I need to provide this option during build and not during run)?

Source: Docker Questions

Published
Categorised as docker, java, maven, spring-boot, spring-boot-maven-plugin Tagged , , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq