public static class ContainerConfiguration.Builder extends Object
ContainerConfiguration.public ContainerConfiguration.Builder setCreationTime(Instant creationTime)
creationTime - the creation timepublic ContainerConfiguration.Builder setProgramArguments(@Nullable List<String> programArguments)
programArguments - the list of argumentspublic ContainerConfiguration.Builder setEnvironment(@Nullable Map<String,String> environmentMap)
environmentMap - the mappublic ContainerConfiguration.Builder setExposedPorts(@Nullable Set<Port> exposedPorts)
exposedPorts - the set of portspublic void addExposedPort(Port port)
public ContainerConfiguration.Builder setVolumes(@Nullable Set<AbsoluteUnixPath> volumes)
volumes - the set of volumespublic void addVolume(AbsoluteUnixPath volume)
public ContainerConfiguration.Builder setLabels(@Nullable Map<String,String> labels)
labels - the map of labelspublic ContainerConfiguration.Builder setEntrypoint(@Nullable List<String> entrypoint)
entrypoint - the tokenized command to run when the container startspublic ContainerConfiguration.Builder setUser(@Nullable String user)
user can be a username or UID along
with an optional groupname or GID. The following are all valid: user, uid,
user:group, uid:gid, uid:group, user:gid.user - the username/UID and optionally the groupname/GIDpublic ContainerConfiguration.Builder setWorkingDirectory(@Nullable AbsoluteUnixPath workingDirectory)
workingDirectory - the working directorypublic ContainerConfiguration build()
ContainerConfiguration.ContainerConfigurationCopyright © 2019. All rights reserved.