public void stopPreviouslyStartedContainer ( String containerId , boolean keepContainer , boolean removeVolumes ) throws DockerAccessException , ExecException { ContainerTracker . ContainerShutdownDescriptor descriptor = tracker . removeContainer ( containerId ) ; if ( descriptor != null ) { shutdown ( descriptor , keepContainer , removeVolumes ) ; } }
Lookup up whether a certain has been already started and registered . If so stop it