allContainerIDs function

UnmodifiableListView<String> allContainerIDs ({Docker docker: const Docker() })

Returns all Docker-Container-IDs

Implementation

UnmodifiableListView<String> allContainerIDs({ final Docker docker: const Docker() }) {
    final String allContainers = docker.ps([ "-a", "-q" ],quiet: true);
    return new UnmodifiableListView<String>(
        allContainers.split("\n").where(((final String container) => container.trim().isNotEmpty)));
}