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

createDockerConfig() — spring-boot Function Reference

Architecture documentation for the createDockerConfig() function in DockerConfigurationMetadata.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d["createDockerConfig()"]
  e2f59cdc_ac98_582e_bb45_2392be37db9d["create()"]
  e2f59cdc_ac98_582e_bb45_2392be37db9d -->|calls| 20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d
  403fa7ea_bc3d_2449_e5c8_35453034dc79["of()"]
  20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d -->|calls| 403fa7ea_bc3d_2449_e5c8_35453034dc79
  a4c5e1b2_4d7c_4724_529c_acc76613fd65["readPathContent()"]
  20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d -->|calls| a4c5e1b2_4d7c_4724_529c_acc76613fd65
  afff5233_f76c_519f_cb50_e26460b9293c["empty()"]
  20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d -->|calls| afff5233_f76c_519f_cb50_e26460b9293c
  a7e23547_7bde_18e8_fc7e_e47411b57c7b["fromJson()"]
  20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d -->|calls| a7e23547_7bde_18e8_fc7e_e47411b57c7b
  style 20b4798b_08be_2aef_8dc6_3f7ab2c6fc4d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConfigurationMetadata.java lines 115–126

	private static DockerConfig createDockerConfig(String configLocation) {
		Path path = Path.of(configLocation, CONFIG_FILE_NAME);
		if (!path.toFile().exists()) {
			return DockerConfig.empty();
		}
		try {
			return DockerConfig.fromJson(readPathContent(path));
		}
		catch (JacksonException ex) {
			throw new IllegalStateException("Error parsing Docker configuration file '" + path + "'", ex);
		}
	}

Subdomains

Called By

Frequently Asked Questions

What does createDockerConfig() do?
createDockerConfig() is a function in the spring-boot codebase.
What does createDockerConfig() call?
createDockerConfig() calls 4 function(s): empty, fromJson, of, readPathContent.
What calls createDockerConfig()?
createDockerConfig() 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