Class ContainerConfig.Update

java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ContainerConfig.Update
Enclosing class:
ContainerConfig

public static class ContainerConfig.Update extends Object
Update class used to change data when creating a container config.
  • Method Details

    • withUser

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

      public void withCommand(String command, String... args)
      Update the container config with a specific command.
      Parameters:
      command - the command to set
      args - additional arguments to add
      See Also:
    • withArgs

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

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

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

      public void withEnv(String name, String value)
      Update the container config with an additional environment variable.
      Parameters:
      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.
      Parameters:
      networkMode - the network
    • withSecurityOption

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