public class CmdServiceUpdate extends Cmd
JDocker Framework. WebSite: https://github.com/helyho/JDocker Licence: Apache v2 License
| 构造器和说明 |
|---|
CmdServiceUpdate(ServiceInfo serviceInfo) |
CmdServiceUpdate(String nameOrId,
Integer version) |
addParameter, close, connect, connect1, connect2, connect3, connect4, getDockerHttpClient, getParameters, loadStream, sendDatapublic CmdServiceUpdate(ServiceInfo serviceInfo)
public CmdServiceUpdate name(String name)
public CmdServiceUpdate image(String image)
public CmdServiceUpdate cmd(String... cmd)
public CmdServiceUpdate env(String... env)
public CmdServiceUpdate stopGracePeriod(long stopGracePeriod)
public CmdServiceUpdate cpuLimit(float nanoCpu)
public CmdServiceUpdate memoryLimit(long memoryByte)
public CmdServiceUpdate cpuReservation(float nanoCpu)
public CmdServiceUpdate memoryReservation(long memoryByte)
public CmdServiceUpdate network(String network)
public CmdServiceUpdate mode(String mode)
public CmdServiceUpdate port(String protocol, int targetPort, int publishPort)
public CmdServiceUpdate portTcp(int targetPort, int publishPort)
public CmdServiceUpdate portUdp(int targetPort, int publishPort)
public CmdServiceUpdate mountRead(String source, String target)
public CmdServiceUpdate mountReadWrite(String source, String target)
public CmdServiceUpdate mount(String type, String source, String target, boolean readOnly)
public CmdServiceUpdate replicate(int replicas)
public CmdServiceUpdate restartPolicy(long delay, String ondition, int maxAttempts)
public CmdServiceUpdate updateConfig(long delay, String failureAction, int parallelism)
public CmdServiceUpdate label(String key, String value)
public CmdServiceUpdate forceUpdate(Integer forceUpdate)
public CmdServiceUpdate tty(boolean tty)
public CmdServiceUpdate dnsNameservers(String nameservers)
public CmdServiceUpdate dnsSearch(String Search)
public CmdServiceUpdate dnsOptions(String options)
public ServiceSpec getEntity()
public static CmdServiceUpdate newInstance(String nameOrId, Integer version)
Copyright © 2017 Voovan. All rights reserved.