withVolumeMapping method
Adds a volume bind mount from host to container with mode.
mode should be 'rw' (read-write) or 'ro' (read-only).
Returns this for chaining.
Implementation
DockerContainer withVolumeMapping(
String host,
String container,
String mode,
) {
_volumes[host] = (bind: container, mode: mode);
return this;
}