Sets whether per-container network isolation is enabled. When disabled, the container runs on the default Docker network with direct internet access.
(mut self, enabled: bool)
| 184 | /// Sets whether per-container network isolation is enabled. |
| 185 | /// When disabled, the container runs on the default Docker network with direct internet access. |
| 186 | pub fn network_isolation(mut self, enabled: bool) -> Self { |
| 187 | self.network_isolation = enabled; |
| 188 | self |
| 189 | } |
| 190 | |
| 191 | /// Sets whether Docker-in-Docker support is enabled. |
| 192 | /// When enabled, container security is relaxed to allow nested container builds. |