Home / Function/ createContainer() — spring-boot Function Reference

createContainer() — spring-boot Function Reference

Architecture documentation for the createContainer() function in DockerApi.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c7c5f107_03b8_a5c5_8c9f_496cb0f24756["createContainer()"]
  d94ca924_abe2_d862_5c9e_88bc2a2df020["create()"]
  d94ca924_abe2_d862_5c9e_88bc2a2df020 -->|calls| c7c5f107_03b8_a5c5_8c9f_496cb0f24756
  d1757773_1e32_5f99_15ef_5bbc9a9d8dd2["buildUrl()"]
  c7c5f107_03b8_a5c5_8c9f_496cb0f24756 -->|calls| d1757773_1e32_5f99_15ef_5bbc9a9d8dd2
  fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be["http()"]
  c7c5f107_03b8_a5c5_8c9f_496cb0f24756 -->|calls| fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be
  aedd9701_c439_405f_f47e_c53ca8d2db00["get()"]
  c7c5f107_03b8_a5c5_8c9f_496cb0f24756 -->|calls| aedd9701_c439_405f_f47e_c53ca8d2db00
  style c7c5f107_03b8_a5c5_8c9f_496cb0f24756 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java lines 430–439

		private ContainerReference createContainer(ContainerConfig config, @Nullable ImagePlatform platform)
				throws IOException {
			URI createUri = (platform != null)
					? buildUrl(Feature.PLATFORM_CONTAINER_CREATE, "/containers/create", "platform", platform)
					: buildUrl("/containers/create");
			try (Response response = http().post(createUri, "application/json", config::writeTo)) {
				return ContainerReference
					.of(SharedJsonMapper.get().readTree(response.getContent()).at("/Id").asString());
			}
		}

Subdomains

Called By

Frequently Asked Questions

What does createContainer() do?
createContainer() is a function in the spring-boot codebase.
What does createContainer() call?
createContainer() calls 3 function(s): buildUrl, get, http.
What calls createContainer()?
createContainer() is called by 1 function(s): create.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free