类 ContainerConfig.Update

java.lang.Object
cn.taketoday.buildpack.platform.docker.type.ContainerConfig.Update
封闭类:
ContainerConfig

public static class ContainerConfig.Update extends Object
Update class used to change data when creating a container config.
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • run

    • withUser

      public void withUser(String user)
      Update the container config with a specific user.
      参数:
      user - the user to set
    • withCommand

      public void withCommand(String command, String... args)
      Update the container config with a specific command.
      参数:
      command - the command to set
      args - additional arguments to add
      另请参阅:
    • withArgs

      public void withArgs(String... args)
      Update the container config with additional args.
      参数:
      args - the arguments to add
    • withLabel

      public void withLabel(String name, String value)
      Update the container config with an additional label.
      参数:
      name - the label name
      value - the label value
    • withBinding

      public void withBinding(Binding binding)
      Update the container config with an additional binding.
      参数:
      binding - the binding
    • withEnv

      public void withEnv(String name, String value)
      Update the container config with an additional environment variable.
      参数:
      name - the variable name
      value - the variable value
    • withNetworkMode

      public void withNetworkMode(String networkMode)
      Update the container config with the network that the build container will connect to.
      参数:
      networkMode - the network
    • withSecurityOption

      public void withSecurityOption(String option)
      Update the container config with a security option.
      参数:
      option - the security option