public void stopStartedContainers ( boolean keepContainer , boolean removeVolumes , boolean removeCustomNetworks , GavLabel gavLabel ) throws DockerAccessException , ExecException { Set < Network > networksToRemove = new HashSet <> ( ) ; for ( ContainerTracker . ContainerShutdownDescriptor descriptor : tracker . removeShutdownDescriptors ( gavLabel ) ) { collectCustomNetworks ( networksToRemove , descriptor , removeCustomNetworks ) ; shutdown ( descriptor , keepContainer , removeVolumes ) ; } removeCustomNetworks ( networksToRemove ) ; }
Stop all registered container