public List <String> GetProjects() { var runningContainers = _docker.GetRunningContainers(); var result = new List <String>(); foreach (var cnt in runningContainers) { if (cnt.Name.Contains("_dashboard_")) { int start = 1; int end = cnt.Name.IndexOf("_dashboard_"); var project = cnt.Name.Substring(start, end - start); result.Add(project); } } return(result); }