You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`entitlements`](#targetentitlements)| List | Permissions that the build process requires to run |
231
+
|[`extra-hosts`](#targetextra-hosts)| List | Customs host-to-IP mapping |
230
232
|[`inherits`](#targetinherits)| List | Inherit attributes from other targets |
231
233
|[`labels`](#targetlabels)| Map | Metadata for images |
232
234
|[`matrix`](#targetmatrix)| Map | Define a set of variables that forks a target into multiple targets. |
@@ -583,6 +585,20 @@ target "integration-tests" {
583
585
584
586
Entitlements are enabled with a two-step process. First, a target must declare the entitlements it requires. Secondly, when invoking the `bake` command, the user must grant the entitlements by passing the `--allow` flag or confirming the entitlements when prompted in an interactive terminal. This is to ensure that the user is aware of the possibly insecure permissions they are granting to the build process.
585
587
588
+
### `target.extra-hosts`
589
+
590
+
Use the `extra-hosts` attribute to define customs host-to-IP mapping for the
591
+
target. This has the same effect as passing a [`--add-host`][add-host] flag to
592
+
the build command.
593
+
594
+
```hcl
595
+
target "default" {
596
+
extra-hosts = {
597
+
my_hostname = "8.8.8.8"
598
+
}
599
+
}
600
+
```
601
+
586
602
### `target.inherits`
587
603
588
604
A target can inherit attributes from other targets.
0 commit comments