runningContainerIDs function

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

Returns Docker-Container-IDs for active/running containers

Implementation

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