/** * 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; }
/** * 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; }
/** * 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; }
/** * 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({ "Id", "Author", "Comment", "Config", "ContainerConfig", "Parent", "Created", "Container", "DockerVersion", "Architecture", "Os", "Size", "VirtualSize", "RepoTags" }) public static Image create(String id, String author, String comment, Config config, Config containerConfig, String parent, Date created, String container, String dockerVersion, String architecture, String os, long size, long virtualSize, List<String> repoTags) { return new AutoValue_Image(id, author, comment, config, containerConfig, parent, created, container, dockerVersion, architecture, os, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({ "PortAndProtocol", "HostPorts" }) public static ExposedPorts create(String portAndProtocol, List<String> hostPorts) { return new AutoValue_ExposedPorts(portAndProtocol, copyOf(hostPorts)); } }
@SerializedNames({ "Id", "Author", "Comment", "Config", "ContainerConfig", "Parent", "Created", "Container", "DockerVersion", "Architecture", "Os", "Size", "VirtualSize", "RepoTags" }) public static Image create(String id, String author, String comment, Config config, Config containerConfig, String parent, Date created, String container, String dockerVersion, String architecture, String os, long size, long virtualSize, List<String> repoTags) { return new AutoValue_Image(id, author, comment, config, containerConfig, parent, created, container, dockerVersion, architecture, os, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({"Id", "Created", "CreatedBy", "Tags", "Size", "Comment"}) public static ImageHistory create(String id, long created, String createdBy, List<String> tags, long size, String comment) { return new AutoValue_ImageHistory(id, created, createdBy, copyOf(tags), size, comment); } }
@SerializedNames({"Id", "Created", "ParentId", "Size", "VirtualSize", "RepoTags"}) public static ImageSummary create(String id, long created, String parentId, long size, long virtualSize, List<String> repoTags) { return new AutoValue_ImageSummary(id, created, parentId, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({ "PortAndProtocol", "HostPorts" }) public static ExposedPorts create(String portAndProtocol, List<String> hostPorts) { return new AutoValue_ExposedPorts(portAndProtocol, copyOf(hostPorts)); } }
@SerializedNames({"Id", "Created", "CreatedBy", "Tags", "Size", "Comment"}) public static ImageHistory create(String id, long created, String createdBy, List<String> tags, long size, String comment) { return new AutoValue_ImageHistory(id, created, createdBy, copyOf(tags), size, comment); } }
@SerializedNames({ "Id", "Author", "Comment", "Config", "ContainerConfig", "Parent", "Created", "Container", "DockerVersion", "Architecture", "Os", "Size", "VirtualSize", "RepoTags" }) public static Image create(String id, String author, String comment, Config config, Config containerConfig, String parent, Date created, String container, String dockerVersion, String architecture, String os, long size, long virtualSize, List<String> repoTags) { return new AutoValue_Image(id, author, comment, config, containerConfig, parent, created, container, dockerVersion, architecture, os, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({ "PortAndProtocol", "HostPorts" }) public static ExposedPorts create(String portAndProtocol, List<String> hostPorts) { return new AutoValue_ExposedPorts(portAndProtocol, copyOf(hostPorts)); } }
@SerializedNames({"Id", "Created", "ParentId", "Size", "VirtualSize", "RepoTags"}) public static ImageSummary create(String id, long created, String parentId, int size, int virtualSize, List<String> repoTags) { return new AutoValue_ImageSummary(id, created, parentId, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({"Id", "Created", "CreatedBy", "Tags", "Size", "Comment"}) public static ImageHistory create(String id, long created, String createdBy, List<String> tags, long size, String comment) { return new AutoValue_ImageHistory(id, created, createdBy, copyOf(tags), size, comment); } }
public ExecCreateParams build() { cmd(copyOf(cmd())); return autoBuild(); } }
public IPAM build() { return config(copyOf(config())) .autoBuild(); } }
@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 Network build() { return containers(copyWithNullOf(containers())) .options(copyOf(options())) .autoBuild(); } }
public Network build() { return containers(copyWithNullOf(containers())) .options(copyOf(options())) .autoBuild(); } }