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.
- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick, Jeroen Meijer
-
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
withSecurityOption
(String option) Update the container config with a security option.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
-
withArgs
Update the container config with additional args.- Parameters:
args
- the arguments to add
-
withLabel
-
withBinding
Update the container config with an additional binding.- Parameters:
binding
- the binding
-
withEnv
-
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
-