Skip to content

Commit a7a00d3

Browse files
authored
Add allowInsecureRegistries to READMEs (GoogleContainerTools#494)
1 parent 4e11674 commit a7a00d3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎jib-gradle-plugin/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ Field | Type | Default | Description
145145
`to` | [`to`](#to-closure) | *Required* | Configures the target image to build your application to.
146146
`container` | [`container`](#container-closure) | See [`container`](#container-closure) | Configures the container that is run from your built image.
147147
`useProjectOnlyCache` | `boolean` | `false` | If set to true, Jib does not share a cache between different Maven projects.
148-
149-
*\* Uses the main class defined in the `jar` task or tries to find a valid main class.*
148+
`allowInsecureRegistries` | boolean | `false` | If set to true, Jib uses HTTP as a fallback for registries that do not support HTTPS. Leaving this parameter set to false is strongly recommended, since communication with insecure registries is unencrypted and visible to others on the network.
150149

151150
<a name="from-closure"></a>`from` is a closure with the following properties:
152151

@@ -181,6 +180,8 @@ Property | Type | Default | Description
181180
`ports` | `List<String>` | *None* | Ports that the container exposes at runtime (similar to Docker's [EXPOSE](https://docs.docker.com/engine/reference/builder/#expose) instruction).
182181
`format` | `String` | `Docker` | Use `OCI` to build an [OCI container image](https://www.opencontainers.org/).
183182

183+
*\* Uses the main class defined in the `jar` task or tries to find a valid main class.*
184+
184185
### Example
185186

186187
In this configuration, the image:

‎jib-maven-plugin/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ Field | Type | Default | Description
186186
`to` | [`to`](#to-object) | *Required* | Configures the target image to build your application to.
187187
`container` | [`container`](#container-object) | See [`container`](#container-object) | Configures the container that is run from your image.
188188
`useOnlyProjectCache` | boolean | `false` | If set to true, Jib does not share a cache between different Gradle projects.
189-
190-
*\* Uses `mainClass` from `maven-jar-plugin` or tries to find a valid main class.*
189+
`allowInsecureRegistries` | boolean | `false` | If set to true, Jib uses HTTP as a fallback for registries that do not support HTTPS. Leaving this parameter set to false is strongly recommended, since communication with insecure registries is unencrypted and visible to others on the network.
191190

192191
<a name="from-object"></a>`from` is an object with the following properties:
193192

@@ -213,6 +212,8 @@ Property | Type | Default | Description
213212
`ports` | `List<String>` | *None* | Ports that the container exposes at runtime (similar to Docker's [EXPOSE](https://docs.docker.com/engine/reference/builder/#expose) instruction).
214213
`format` | string | `Docker` | Use `OCI` to build an [OCI container image](https://www.opencontainers.org/).
215214

215+
*\* Uses `mainClass` from `maven-jar-plugin` or tries to find a valid main class.*
216+
216217
### Example
217218

218219
In this configuration, the image:

0 commit comments

Comments
 (0)