getRunningServices() — spring-boot Function Reference
Architecture documentation for the getRunningServices() function in DefaultDockerCompose.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 716e151e_3a2d_b2da_3f09_8b691943e1db["getRunningServices()"] 4212cbaf_95f2_9ff9_0833_3935ac227ca5["runComposePs()"] 716e151e_3a2d_b2da_3f09_8b691943e1db -->|calls| 4212cbaf_95f2_9ff9_0833_3935ac227ca5 85d5b25e_a712_71d2_edee_bcc9be66209c["inspect()"] 716e151e_3a2d_b2da_3f09_8b691943e1db -->|calls| 85d5b25e_a712_71d2_edee_bcc9be66209c 51f89ade_f63c_64dd_e5a5_f18477e9880c["inspectContainer()"] 716e151e_3a2d_b2da_3f09_8b691943e1db -->|calls| 51f89ade_f63c_64dd_e5a5_f18477e9880c style 716e151e_3a2d_b2da_3f09_8b691943e1db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/DefaultDockerCompose.java lines 96–111
@Override
public List<RunningService> getRunningServices() {
List<DockerCliComposePsResponse> runningPsResponses = runComposePs().stream().filter(this::isRunning).toList();
if (runningPsResponses.isEmpty()) {
return Collections.emptyList();
}
DockerComposeFile dockerComposeFile = this.cli.getDockerComposeFile();
List<RunningService> result = new ArrayList<>();
Map<String, DockerCliInspectResponse> inspected = inspect(runningPsResponses);
for (DockerCliComposePsResponse psResponse : runningPsResponses) {
DockerCliInspectResponse inspectResponse = inspectContainer(psResponse.id(), inspected);
Assert.state(inspectResponse != null, () -> "Failed to inspect container '%s'".formatted(psResponse.id()));
result.add(new DefaultRunningService(this.hostname, dockerComposeFile, psResponse, inspectResponse));
}
return Collections.unmodifiableList(result);
}
Domain
Subdomains
Calls
- inspect()
- inspectContainer()
- runComposePs()
Source
Frequently Asked Questions
What does getRunningServices() do?
getRunningServices() is a function in the spring-boot codebase.
What does getRunningServices() call?
getRunningServices() calls 3 function(s): inspect, inspectContainer, runComposePs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free