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 ) ; }
Stop a container immediately by id .