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 TypeMethodDescriptionvoid
Update the container config with additional args.void
withBinding
(Binding binding) Update the container config with an additional binding.void
withCommand
(String command, String... args) Update the container config with a specific command.void
Update the container config with an additional environment variable.void
Update the container config with an additional label.void
withNetworkMode
(String networkMode) Update the container config with the network that the build container will connect to.void
Update 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
-