}
usedPorts.addAll(dockerPorts);
return usedPorts;
} catch (DockerApiConnectionException e) {
String suggestion = String.format("Can't connect to the Docker server. Are you sure a Docker server is running at %s?", dockerFactory.getAddress());
throw new DockerApiConnectionException(suggestion, e.getCause());
}
}