EndpointConfig endpointConfig = new EndpointConfig().withAliases(machineName)
.withLinks(toArrayIfNotNull(service.getLinks()));
NetworkingConfig networkingConfig = new NetworkingConfig().withEndpointsConfig(singletonMap(networkName,
endpointConfig));
HostConfig hostConfig = new HostConfig();
<BUG>hostConfig.withBinds(toArrayIfNotNull(service.getVolumes()))
.withMemorySwap(machineMemorySwap)
</BUG>
.withMemory(service.getMemLimit())
.withNetworkMode(networkName)

EndpointConfig endpointConfig = new EndpointConfig().withAliases(machineName)
.withLinks(toArrayIfNotNull(service.getLinks()));
NetworkingConfig networkingConfig = new NetworkingConfig().withEndpointsConfig(singletonMap(networkName,
endpointConfig));
HostConfig hostConfig = new HostConfig();
hostConfig.withMemorySwap(machineMemorySwap)
.withMemory(service.getMemLimit())
.withNetworkMode(networkName)
