Class ContainerConfig.Update
java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ContainerConfig.Update
- Enclosing class:
- ContainerConfig
Update class used to change data when creating a container config.
-
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate the container config with additional args.voidwithBinding(Binding binding) Update the container config with an additional binding.voidwithCommand(String command, String... args) Update the container config with a specific command.voidUpdate the container config with an additional environment variable.voidUpdate the container config with an additional label.voidwithNetworkMode(String networkMode) Update the container config with the network that the build container will connect to.voidwithSecurityOption(String option) Update the container config with a security option.voidUpdate the container config with a specific user.
-
Method Details
-
withUser
Update the container config with a specific user.- Parameters:
user- the user to set
-
withCommand
Update the container config with a specific command.- Parameters:
command- the command to setargs- additional arguments to add- See Also:
-
withArgs
Update the container config with additional args.- Parameters:
args- the arguments to add
-
withLabel
Update the container config with an additional label.- Parameters:
name- the label namevalue- the label value
-
withBinding
Update the container config with an additional binding.- Parameters:
binding- the binding
-
withEnv
Update the container config with an additional environment variable.- Parameters:
name- the variable namevalue- the variable value
-
withNetworkMode
Update the container config with the network that the build container will connect to.- Parameters:
networkMode- the network
-
withSecurityOption
Update the container config with a security option.- Parameters:
option- the security option
-