def runCommand(realArgs): options,args = parseCliArgs(realArgs) user = User() runningImages = [container["Image"] for container in user.getDockerDaemon().getContainers(onlyRunning=True)] for _,subuser in user.getRegistry().getSubusers().items(): try: if subuser.getRunReadyImage().getId() in runningImages: if not options.internal: if subuser.getName().startswith("!"): continue print(subuser.getName()) except (KeyError,subuserlib.classes.subuserSubmodules.run.runtimeCache.NoRuntimeCacheForSubusersWhichDontHaveExistantImagesException): pass