docker_network { 'my-net':
ensure => present,
driver => 'overlay',
subnet => '192.168.1.0/24',
gateway => '192.168.1.1',
ip_range => '192.168.1.4/32',
}
-
The name value and the ensure parameter are required.
-
If you do not include the driver value, the default bridge is used.
-
The Docker daemon must be configured for the overlay network.
-
To configure the cluster store, update the docker class in the manifest file:
extra_parameters => '--cluster-store=<backend>://172.17.8.101:<port> --cluster-advertise=<interface>:2376'