private List < ImageConfiguration > getImagesWhoseDependenciesHasStarted ( Queue < ImageConfiguration > imagesRemaining , Set < String > containersStarted , Set < String > aliases ) { final List < ImageConfiguration > ret = new ArrayList <> ( ) ; // Check for all images which can be already started for ( ImageConfiguration imageWaitingToStart : imagesRemaining ) { List < String > allDependencies = imageWaitingToStart . getDependencies ( ) ; List < String > aliasDependencies = filterOutNonAliases ( aliases , allDependencies ) ; if ( containersStarted . containsAll ( aliasDependencies ) ) { ret . add ( imageWaitingToStart ) ; } } return ret ; }
Pick out all images who can be started right now because all their dependencies has been started