类 ContainerConfig.Update
java.lang.Object
cn.taketoday.buildpack.platform.docker.type.ContainerConfig.Update
- 封闭类:
- ContainerConfig
Update class used to change data when creating a container config.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private ContainerConfigrun(Consumer<ContainerConfig.Update> update) voidUpdate 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.
-
字段详细资料
-
image
-
user
-
command
-
args
-
labels
-
bindings
-
env
-
networkMode
-
securityOptions
-
-
构造器详细资料
-
Update
Update(ImageReference image)
-
-
方法详细资料
-
run
-
withUser
Update the container config with a specific user.- 参数:
user- the user to set
-
withCommand
Update the container config with a specific command.- 参数:
command- the command to setargs- additional arguments to add- 另请参阅:
-
withArgs
Update the container config with additional args.- 参数:
args- the arguments to add
-
withLabel
Update the container config with an additional label.- 参数:
name- the label namevalue- the label value
-
withBinding
Update the container config with an additional binding.- 参数:
binding- the binding
-
withEnv
Update the container config with an additional environment variable.- 参数:
name- the variable namevalue- the variable value
-
withNetworkMode
Update the container config with the network that the build container will connect to.- 参数:
networkMode- the network
-
withSecurityOption
Update the container config with a security option.- 参数:
option- the security option
-