code: public void stopContainer(String containerId,
                                ImageConfiguration imageConfig,
                                boolean keepContainer,
                                boolean removeVolumes)
          throws DockerAccessException, ExecException {
          ContainerTracker.ContainerShutdownDescriptor descriptor =
                  new ContainerTracker.ContainerShutdownDescriptor(imageConfig, containerId);
          shutdown(descriptor, keepContainer, removeVolumes);
      }
docs: Stop a container immediately by id.
  @param containerId the container to stop
  @param imageConfig image configuration for this container
  @param keepContainer whether to keep container or to remove them after stoppings
  @param removeVolumes whether to remove volumes after stopping