withNetwork method

DockerContainer withNetwork(
  1. Network network
)

Attaches the container to network.

Returns this for chaining.

Implementation

DockerContainer withNetwork(Network network) {
  _network = network;
  return this;
}