Polish "Add network option for image building"
See gh-27486
This commit is contained in:
@@ -155,6 +155,12 @@ Where `<options>` can contain:
|
||||
* `volume-opt=key=value` to specify key-value pairs consisting of an option name and its value
|
||||
|
|
||||
|
||||
| `network`
|
||||
| `--network`
|
||||
| The https://docs.docker.com/network/#network-drivers[network driver] the builder container will be configured to use.
|
||||
The value supplied will be passed unvalidated to Docker when creating the builder container.
|
||||
|
|
||||
|
||||
| `cleanCache`
|
||||
| `--cleanCache`
|
||||
| Whether to clean the cache before building.
|
||||
@@ -170,13 +176,6 @@ Where `<options>` can contain:
|
||||
| Whether to publish the generated image to a Docker registry.
|
||||
| `false`
|
||||
|
||||
| `network`
|
||||
| `--network`
|
||||
| The network the build container will connect to. The value supplied for this option will be passed
|
||||
unvalidated as `HostConfig.NetworkMode` to the configuration which creates the build container,
|
||||
see https://docs.docker.com/engine/api/v1.41/#operation/ContainerCreate[Docker's engine API].
|
||||
Using this option is similar to running `docker build --network ...`.
|
||||
|
|
||||
|===
|
||||
|
||||
NOTE: The plugin detects the target Java compatibility of the project using the JavaPlugin's `targetCompatibility` property.
|
||||
|
||||
Reference in New Issue
Block a user