@@ -74,7 +74,7 @@ Creates a testcontainers instance from a given Docker label and returns them
7474| ` :exposed-ports ` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
7575| ` :env-vars ` | Map | A map with environment variables |
7676| ` :command ` | Vector with strings | The start command of the container |
77- | ` :network ` | Map | A map containing the configuration of a Docker Network (see: ` create-network ` ) |
77+ | ` :network ` | Map | A map containing the configuration of a Docker Network (see: ` create-network ` ). For host networking, use : host |
7878| ` :network-aliases ` | Map | A list of alias names for the container on the network |
7979| ` :wait-for ` | Map | A map containing the [ wait strategy] ( doc/wait-strategies.md ) to use and the condition to check for |
8080| ` :log-to ` | Map | A map containing the [ log strategy] ( doc/log-strategies.md ) to use, e.g. {: log-strategy string} |
@@ -129,10 +129,10 @@ Initializes a given Testcontainer, which was e.g. provided by a library
129129| ` :exposed-ports ` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
130130| ` :env-vars ` | Map | A map with environment variables |
131131| ` :command ` | Vector with strings | The start command of the container |
132- | ` :network ` | Map | A map containing the configuration of a Docker Network (see: ` create-network ` ) |
132+ | ` :network ` | Map or : host | A map containing the configuration of a Docker Network (see: ` create-network ` ). For host networking, use : host |
133133| ` :network-aliases ` | Map | A list of alias names for the container on the network |
134- | ` :wait-for ` | Map | A map containing the [ wait strategy] ( doc/wait-strategies.md ) to use and the condition to check for |
135- | ` :log-to ` | Map | A map containing the [ log strategy] ( doc/log-strategies.md ) to use, e.g. {: log-strategy string} |
134+ | ` :wait-for ` | Map | A map containing the [ wait strategy] ( doc/wait-strategies.md ) to use and the condition to check for |
135+ | ` :log-to ` | Map | A map containing the [ log strategy] ( doc/log-strategies.md ) to use, e.g. {: log-strategy string} |
136136| | | |
137137
138138#### Result:
@@ -143,7 +143,7 @@ Initializes a given Testcontainer, which was e.g. provided by a library
143143| ` :exposed-ports ` | Vector with ints | Value of the same input parameter |
144144| ` :env-vars ` | Map | Value of the same input parameter |
145145| ` :host ` | String | The host for the Docker Container |
146- | ` :network ` | Map | The network configuration of the Container, if provided |
146+ | ` :network ` | Map or : host | The network configuration of the Container, if provided. |
147147| ` :wait-for ` | Map | The wait-for configuration of the Container, if provided! |
148148
149149#### Example:
@@ -183,7 +183,7 @@ Creates a testcontainer from a Dockerfile
183183| ` :exposed-ports ` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
184184| ` :env-vars ` | Map | A map with environment variables |
185185| ` :command ` | Vector with strings | The start command of the container |
186- | ` :network ` | Map | A map containing the configuration of a Docker Network (see: ` create-network ` ) |
186+ | ` :network ` | Map | A map containing the configuration of a Docker Network (see: ` create-network ` ). For host networking, use : host |
187187| ` :network-aliases ` | Map | A list of alias names for the container on the network |
188188| ` :wait-for ` | Map | A map containing the [ wait strategy] ( doc/wait-strategies.md ) to use and the condition to check for |
189189| ` :log-to ` | Map | A map containing the [ log strategy] ( doc/log-strategies.md ) to use, e.g. {: log-strategy string} |
@@ -399,7 +399,7 @@ Creates a network. The optional map accepts config values for enabling ipv6 and
399399| Key | Type | Description |
400400| ------------- | :------------- | :----- |
401401| ` :ipv6 ` | boolean | Should the network enable IPv6? |
402- | ` :driver ` | String | The network driver used by Docker, e.g. ` bridge ` or ` host ` |
402+ | ` :driver ` | String | The network driver used by Docker, e.g. ` bridge ` |
403403
404404#### Result:
405405
0 commit comments