Class ContainerConfig
java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ContainerConfig
Configuration used when creating a new container.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUpdate class used to change data when creating a container config. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerConfigof(ImageReference imageReference, Consumer<ContainerConfig.Update> update) Factory method to create aContainerConfigwith specific settings.toString()voidwriteTo(OutputStream outputStream) Write this container configuration to the specifiedOutputStream.
-
Method Details
-
writeTo
Write this container configuration to the specifiedOutputStream.- Parameters:
outputStream- the output stream- Throws:
IOException- on IO error
-
toString
-
of
public static ContainerConfig of(ImageReference imageReference, Consumer<ContainerConfig.Update> update) Factory method to create aContainerConfigwith specific settings.- Parameters:
imageReference- the source image for the container configupdate- an update callback used to customize the config- Returns:
- a new
ContainerConfiginstance
-