/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
@SerializedNames({ "ContainerIDFile", "Binds", "LxcConf", "Privileged", "Dns", "DnsSearch", "PortBindings", "Links", "ExtraHosts", "PublishAllPorts", "VolumesFrom", "NetworkMode", "SecurityOpt", "CapAdd", "CapDrop", "RestartPolicy" }) public static HostConfig create(String containerIDFile, List<String> binds, List<Map<String, String>> lxcConf, boolean privileged, List<String> dns, List<String> dnsSearch, Map<String, List<Map<String, String>>> portBindings, List<String> links, List<String> extraHosts, boolean publishAllPorts, List<String> volumesFrom, String networkMode, List<String> securityOpt, List<String> capAdd, List<String> capDrop, Map<String, String> restartPolicy) { return new AutoValue_HostConfig(containerIDFile, copyWithNullOf(binds), copyOf(lxcConf), privileged, copyWithNullOf(dns), copyWithNullOf(dnsSearch), copyOf(portBindings), copyWithNullOf(links), copyWithNullOf(extraHosts), publishAllPorts, copyWithNullOf(volumesFrom), networkMode, copyOf(securityOpt), copyWithNullOf(capAdd), copyWithNullOf(capDrop), copyOf(restartPolicy)); }
public DockerTemplateOptions entrypoint(Iterable<String> entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
public DockerTemplateOptions env(Iterable<String> env) { this.env = NullSafeCopies.copyWithNullOf(env); return this; }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
@SerializedNames({ "ContainerIDFile", "Binds", "LxcConf", "Privileged", "Dns", "DnsSearch", "PortBindings", "Links", "ExtraHosts", "PublishAllPorts", "VolumesFrom", "NetworkMode", "SecurityOpt", "CapAdd", "CapDrop", "RestartPolicy" }) public static HostConfig create(String containerIDFile, List<String> binds, List<Map<String, String>> lxcConf, boolean privileged, List<String> dns, List<String> dnsSearch, Map<String, List<Map<String, String>>> portBindings, List<String> links, List<String> extraHosts, boolean publishAllPorts, List<String> volumesFrom, String networkMode, List<String> securityOpt, List<String> capAdd, List<String> capDrop, Map<String, String> restartPolicy) { return new AutoValue_HostConfig(containerIDFile, copyWithNullOf(binds), copyOf(lxcConf), privileged, copyWithNullOf(dns), copyWithNullOf(dnsSearch), copyOf(portBindings), copyWithNullOf(links), copyWithNullOf(extraHosts), publishAllPorts, copyWithNullOf(volumesFrom), networkMode, copyOf(securityOpt), copyWithNullOf(capAdd), copyWithNullOf(capDrop), copyOf(restartPolicy)); }
public DockerTemplateOptions env(String...env) { this.env = NullSafeCopies.copyWithNullOf(env); return this; }
/** * Set extra hosts file entries for a container. * <p> * The {@link Map} keys are host names, and the value is an IP address that * can be accessed by the container. This is the same order as the arguments for the * {@code --add-host} command-line option to {@code docker run}. * * @param extraHosts the map of host names to IP addresses */ public DockerTemplateOptions extraHosts(Map<String, String> extraHosts) { this.extraHosts = NullSafeCopies.copyOf(extraHosts); return this; }
@SerializedNames({ "ContainerIDFile", "Binds", "LxcConf", "Privileged", "Dns", "DnsSearch", "PortBindings", "Links", "ExtraHosts", "PublishAllPorts", "VolumesFrom", "NetworkMode" }) public static HostConfig create(String containerIDFile, List<String> binds, List<Map<String, String>> lxcConf, boolean privileged, List<String> dns, List<String> dnsSearch, Map<String, List<Map<String, String>>> portBindings, List<String> links, List<String> extraHosts, boolean publishAllPorts, List<String> volumesFrom, String networkMode) { return new AutoValue_HostConfig(containerIDFile, copyWithNullOf(binds), copyOf(lxcConf), privileged, copyWithNullOf(dns), copyWithNullOf(dnsSearch), copyOf(portBindings), copyWithNullOf(links), copyWithNullOf(extraHosts), publishAllPorts, copyWithNullOf(volumesFrom), networkMode); }
public DockerTemplateOptions entrypoint(Iterable<String> entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
@SerializedNames({ "ContainerIDFile", "Binds", "LxcConf", "Privileged", "Dns", "DnsSearch", "PortBindings", "Links", "ExtraHosts", "PublishAllPorts", "VolumesFrom", "NetworkMode", "SecurityOpt", "CapAdd", "CapDrop", "RestartPolicy" }) public static HostConfig create(String containerIDFile, List<String> binds, List<Map<String, String>> lxcConf, boolean privileged, List<String> dns, List<String> dnsSearch, Map<String, List<Map<String, String>>> portBindings, List<String> links, List<String> extraHosts, boolean publishAllPorts, List<String> volumesFrom, String networkMode, List<String> securityOpt, List<String> capAdd, List<String> capDrop, Map<String, String> restartPolicy) { return new AutoValue_HostConfig(containerIDFile, copyWithNullOf(binds), copyOf(lxcConf), privileged, copyWithNullOf(dns), copyWithNullOf(dnsSearch), copyOf(portBindings), copyWithNullOf(links), copyWithNullOf(extraHosts), publishAllPorts, copyWithNullOf(volumesFrom), networkMode, copyOf(securityOpt), copyWithNullOf(capAdd), copyWithNullOf(capDrop), copyOf(restartPolicy)); }
public DockerTemplateOptions commands(Iterable<String> commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
public Network build() { return containers(copyWithNullOf(containers())) .options(copyOf(options())) .autoBuild(); } }
public DockerTemplateOptions commands(String...commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
public DockerTemplateOptions dns(String...dns) { this.dns = NullSafeCopies.copyOf(dns); return this; }
public Network build() { return containers(copyWithNullOf(containers())) .options(copyOf(options())) .autoBuild(); } }
public DockerTemplateOptions entrypoint(String... entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
public DockerTemplateOptions dns(Iterable<String> dns) { this.dns = NullSafeCopies.copyOf(dns); return this; }