public void pauseService(String serviceName) {
    ContainerState container = composeContainer.getContainerByServiceName(serviceName + "_1")
        .orElseThrow(() -> new IllegalArgumentException("Unknown service name: " + serviceName));
    DockerClientFactory.instance().client().pauseContainerCmd(container.getContainerId()).exec();
  }
Pause a service. This is helpful to test failure conditions.

@see <a href=
     "https://docs.docker.com/engine/reference/commandline/pause/">https://docs.docker.com/engine/reference/commandline/pause/</a>
@param serviceName the service to pause
geode-assembly/src/acceptanceTest/java/org/apache/geode/rules/DockerComposeRule.java