public class CreateContainerCmdImpl extends AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse> implements CreateContainerCmd
Modifier and Type | Class and Description |
---|---|
static class |
CreateContainerCmdImpl.NetworkingConfig |
CreateContainerCmd.Exec
execution
Constructor and Description |
---|
CreateContainerCmdImpl(CreateContainerCmd.Exec exec,
AuthConfig authConfig,
java.lang.String image) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
CreateContainerResponse |
exec() |
java.util.List<java.lang.String> |
getAliases() |
AuthConfig |
getAuthConfig() |
Bind[] |
getBinds() |
java.lang.Integer |
getBlkioWeight() |
Capability[] |
getCapAdd() |
Capability[] |
getCapDrop() |
java.lang.String |
getCgroupParent() |
java.lang.String[] |
getCmd() |
java.lang.Integer |
getCpuPeriod() |
java.lang.String |
getCpusetCpus() |
java.lang.String |
getCpusetMems() |
java.lang.Integer |
getCpuShares() |
Device[] |
getDevices() |
java.lang.String[] |
getDns() |
java.lang.String[] |
getDnsSearch() |
java.lang.String |
getDomainName() |
java.lang.String[] |
getEntrypoint() |
java.lang.String[] |
getEnv() |
ExposedPort[] |
getExposedPorts() |
java.lang.String[] |
getExtraHosts() |
HostConfig |
getHostConfig() |
java.lang.String |
getHostName() |
java.lang.String |
getImage() |
java.lang.String |
getIpv4Address() |
java.lang.String |
getIpv6Address() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels() |
Link[] |
getLinks() |
LogConfig |
getLogConfig() |
LxcConf[] |
getLxcConf() |
java.lang.String |
getMacAddress() |
java.lang.Long |
getMemory() |
java.lang.Long |
getMemorySwap() |
java.lang.String |
getName() |
java.lang.String |
getNetworkMode() |
java.lang.Boolean |
getOomKillDisable() |
java.lang.String |
getPidMode() |
Ports |
getPortBindings() |
java.lang.String[] |
getPortSpecs() |
java.lang.Boolean |
getPrivileged() |
java.lang.Boolean |
getPublishAllPorts() |
java.lang.Boolean |
getReadonlyRootfs() |
RestartPolicy |
getRestartPolicy() |
java.lang.String |
getStopSignal() |
Ulimit[] |
getUlimits() |
java.lang.String |
getUser() |
Volume[] |
getVolumes() |
VolumesFrom[] |
getVolumesFrom() |
java.lang.String |
getWorkingDir() |
int |
hashCode() |
java.lang.Boolean |
isAttachStderr() |
java.lang.Boolean |
isAttachStdin() |
java.lang.Boolean |
isAttachStdout() |
java.lang.Boolean |
isNetworkDisabled() |
java.lang.Boolean |
isStdInOnce() |
java.lang.Boolean |
isStdinOpen() |
java.lang.Boolean |
isTty() |
java.lang.String |
toString() |
CreateContainerCmd |
withAliases(java.util.List<java.lang.String> aliases)
Add network-scoped alias for the container
|
CreateContainerCmd |
withAliases(java.lang.String... aliases)
Add network-scoped alias for the container
|
CreateContainerCmd |
withAttachStderr(java.lang.Boolean attachStderr) |
CreateContainerCmd |
withAttachStdin(java.lang.Boolean attachStdin) |
CreateContainerCmd |
withAttachStdout(java.lang.Boolean attachStdout) |
CreateContainerCmd |
withAuthConfig(AuthConfig authConfig)
While using swarm classic, you can provide an optional auth config which will be used to pull images from a private registry,
if the swarm node does not already have the docker image.
|
CreateContainerCmd |
withBinds(Bind... binds) |
CreateContainerCmd |
withBinds(java.util.List<Bind> binds) |
CreateContainerCmd |
withBlkioWeight(java.lang.Integer blkioWeight) |
CreateContainerCmd |
withCapAdd(Capability... capAdd)
Add linux kernel capability to the container.
|
CreateContainerCmd |
withCapAdd(java.util.List<Capability> capAdd)
Add linux kernel capability to the container.
|
CreateContainerCmd |
withCapDrop(Capability... capDrop)
Drop linux kernel capability from the container.
|
CreateContainerCmd |
withCapDrop(java.util.List<Capability> capDrop)
Drop linux kernel capability from the container.
|
CreateContainerCmd |
withCgroupParent(java.lang.String cgroupParent) |
CreateContainerCmd |
withCmd(java.util.List<java.lang.String> cmd) |
CreateContainerCmd |
withCmd(java.lang.String... cmd) |
CreateContainerCmd |
withContainerIDFile(java.lang.String containerIDFile) |
CreateContainerCmd |
withCpuPeriod(java.lang.Integer cpuPeriod) |
CreateContainerCmd |
withCpusetCpus(java.lang.String cpusetCpus) |
CreateContainerCmd |
withCpusetMems(java.lang.String cpusetMems) |
CreateContainerCmd |
withCpuShares(java.lang.Integer cpuShares) |
CreateContainerCmd |
withDevices(Device... devices)
Add host devices to the container
|
CreateContainerCmd |
withDevices(java.util.List<Device> devices)
Add host devices to the container
|
CreateContainerCmd |
withDns(java.util.List<java.lang.String> dns)
Set custom DNS servers
|
CreateContainerCmd |
withDns(java.lang.String... dns)
Set custom DNS servers
|
CreateContainerCmd |
withDnsSearch(java.util.List<java.lang.String> dnsSearch)
Set custom DNS search domains
|
CreateContainerCmd |
withDnsSearch(java.lang.String... dnsSearch)
Set custom DNS search domains
|
CreateContainerCmd |
withDomainName(java.lang.String domainName) |
CreateContainerCmd |
withEntrypoint(java.util.List<java.lang.String> entrypoint) |
CreateContainerCmd |
withEntrypoint(java.lang.String... entrypoint) |
CreateContainerCmd |
withEnv(java.util.List<java.lang.String> env) |
CreateContainerCmd |
withEnv(java.lang.String... env) |
CreateContainerCmd |
withExposedPorts(ExposedPort... exposedPorts) |
CreateContainerCmd |
withExposedPorts(java.util.List<ExposedPort> exposedPorts) |
CreateContainerCmd |
withExtraHosts(java.util.List<java.lang.String> extraHosts)
Add hostnames to /etc/hosts in the container
|
CreateContainerCmd |
withExtraHosts(java.lang.String... extraHosts)
Add hostnames to /etc/hosts in the container
|
CreateContainerCmd |
withHostConfig(HostConfig hostConfig) |
CreateContainerCmd |
withHostName(java.lang.String hostName) |
CreateContainerCmd |
withImage(java.lang.String image) |
CreateContainerCmd |
withIpv4Address(java.lang.String ipv4Address) |
CreateContainerCmd |
withIpv6Address(java.lang.String ipv6Address) |
CreateContainerCmd |
withLabels(java.util.Map<java.lang.String,java.lang.String> labels) |
CreateContainerCmd |
withLinks(Link... links)
Add link to another container.
|
CreateContainerCmd |
withLinks(java.util.List<Link> links)
Add link to another container.
|
CreateContainerCmd |
withLogConfig(LogConfig logConfig) |
CreateContainerCmd |
withLxcConf(java.util.List<LxcConf> lxcConf) |
CreateContainerCmd |
withLxcConf(LxcConf... lxcConf) |
CreateContainerCmd |
withMacAddress(java.lang.String macAddress) |
CreateContainerCmd |
withMemory(java.lang.Long memory) |
CreateContainerCmd |
withMemorySwap(java.lang.Long memorySwap) |
CreateContainerCmd |
withName(java.lang.String name) |
CreateContainerCmd |
withNetworkDisabled(java.lang.Boolean disableNetwork) |
CreateContainerCmd |
withNetworkMode(java.lang.String networkMode)
Set the Network mode for the container
'bridge': creates a new network stack for the container on the docker bridge
'none': no networking for this container
'container:
|
CreateContainerCmd |
withOomKillDisable(java.lang.Boolean oomKillDisable) |
CreateContainerCmd |
withPidMode(java.lang.String pidMode)
Set the PID (Process) Namespace mode for the container, 'host': use the host's PID namespace inside the container
|
CreateContainerCmd |
withPortBindings(java.util.List<PortBinding> portBindings)
Add one or more
PortBinding s. |
CreateContainerCmd |
withPortBindings(PortBinding... portBindings)
Add one or more
PortBinding s. |
CreateContainerCmd |
withPortBindings(Ports portBindings)
Add the port bindings that are contained in the given
Ports object. |
CreateContainerCmd |
withPortSpecs(java.util.List<java.lang.String> portSpecs) |
CreateContainerCmd |
withPortSpecs(java.lang.String... portSpecs) |
CreateContainerCmd |
withPrivileged(java.lang.Boolean privileged) |
CreateContainerCmd |
withPublishAllPorts(java.lang.Boolean publishAllPorts) |
CreateContainerCmd |
withReadonlyRootfs(java.lang.Boolean readonlyRootfs) |
CreateContainerCmd |
withRestartPolicy(RestartPolicy restartPolicy)
Set custom
RestartPolicy for the container. |
CreateContainerCmd |
withStdInOnce(java.lang.Boolean stdInOnce) |
CreateContainerCmd |
withStdinOpen(java.lang.Boolean stdinOpen) |
CreateContainerCmd |
withStopSignal(java.lang.String stopSignal) |
CreateContainerCmd |
withTty(java.lang.Boolean tty) |
CreateContainerCmd |
withUlimits(java.util.List<Ulimit> ulimits) |
CreateContainerCmd |
withUlimits(Ulimit... ulimits) |
CreateContainerCmd |
withUser(java.lang.String user) |
CreateContainerCmd |
withVolumes(java.util.List<Volume> volumes) |
CreateContainerCmd |
withVolumes(Volume... volumes) |
CreateContainerCmd |
withVolumesFrom(java.util.List<VolumesFrom> volumesFrom) |
CreateContainerCmd |
withVolumesFrom(VolumesFrom... volumesFrom) |
CreateContainerCmd |
withWorkingDir(java.lang.String workingDir) |
close, registryAuth
public CreateContainerCmdImpl(CreateContainerCmd.Exec exec, AuthConfig authConfig, java.lang.String image)
public AuthConfig getAuthConfig()
getAuthConfig
in interface CreateContainerCmd
public CreateContainerCmd withAuthConfig(AuthConfig authConfig)
CreateContainerCmd
withAuthConfig
in interface CreateContainerCmd
authConfig
- The optional auth configpublic CreateContainerResponse exec() throws NotFoundException, ConflictException
exec
in interface CreateContainerCmd
exec
in interface SyncDockerCmd<CreateContainerResponse>
exec
in class AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse>
NotFoundException
- No such containerConflictException
- Named container already existspublic java.util.List<java.lang.String> getAliases()
getAliases
in interface CreateContainerCmd
public Bind[] getBinds()
getBinds
in interface CreateContainerCmd
public java.lang.Integer getBlkioWeight()
getBlkioWeight
in interface CreateContainerCmd
public Capability[] getCapAdd()
getCapAdd
in interface CreateContainerCmd
public Capability[] getCapDrop()
getCapDrop
in interface CreateContainerCmd
public java.lang.String[] getCmd()
getCmd
in interface CreateContainerCmd
public java.lang.Integer getCpuPeriod()
getCpuPeriod
in interface CreateContainerCmd
public java.lang.String getCpusetCpus()
getCpusetCpus
in interface CreateContainerCmd
public java.lang.String getCpusetMems()
getCpusetMems
in interface CreateContainerCmd
public java.lang.Integer getCpuShares()
getCpuShares
in interface CreateContainerCmd
public Device[] getDevices()
getDevices
in interface CreateContainerCmd
public java.lang.String[] getDns()
getDns
in interface CreateContainerCmd
public java.lang.String[] getDnsSearch()
getDnsSearch
in interface CreateContainerCmd
public java.lang.String getDomainName()
getDomainName
in interface CreateContainerCmd
public java.lang.String[] getEntrypoint()
getEntrypoint
in interface CreateContainerCmd
public java.lang.String[] getEnv()
getEnv
in interface CreateContainerCmd
public ExposedPort[] getExposedPorts()
getExposedPorts
in interface CreateContainerCmd
public java.lang.String getStopSignal()
getStopSignal
in interface CreateContainerCmd
stopSignal
public java.lang.String[] getExtraHosts()
getExtraHosts
in interface CreateContainerCmd
public java.lang.String getHostName()
getHostName
in interface CreateContainerCmd
public java.lang.String getImage()
getImage
in interface CreateContainerCmd
public java.lang.String getIpv4Address()
getIpv4Address
in interface CreateContainerCmd
public java.lang.String getIpv6Address()
getIpv6Address
in interface CreateContainerCmd
public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabels
in interface CreateContainerCmd
public Link[] getLinks()
getLinks
in interface CreateContainerCmd
public LxcConf[] getLxcConf()
getLxcConf
in interface CreateContainerCmd
public LogConfig getLogConfig()
getLogConfig
in interface CreateContainerCmd
public java.lang.String getMacAddress()
getMacAddress
in interface CreateContainerCmd
public java.lang.Long getMemory()
getMemory
in interface CreateContainerCmd
public java.lang.Long getMemorySwap()
getMemorySwap
in interface CreateContainerCmd
public java.lang.String getName()
getName
in interface CreateContainerCmd
public java.lang.String getNetworkMode()
getNetworkMode
in interface CreateContainerCmd
public Ports getPortBindings()
getPortBindings
in interface CreateContainerCmd
public java.lang.String[] getPortSpecs()
getPortSpecs
in interface CreateContainerCmd
public RestartPolicy getRestartPolicy()
getRestartPolicy
in interface CreateContainerCmd
public Ulimit[] getUlimits()
getUlimits
in interface CreateContainerCmd
public java.lang.String getUser()
getUser
in interface CreateContainerCmd
public Volume[] getVolumes()
getVolumes
in interface CreateContainerCmd
public VolumesFrom[] getVolumesFrom()
getVolumesFrom
in interface CreateContainerCmd
public java.lang.String getWorkingDir()
getWorkingDir
in interface CreateContainerCmd
public java.lang.Boolean isAttachStderr()
isAttachStderr
in interface CreateContainerCmd
public java.lang.Boolean isAttachStdin()
isAttachStdin
in interface CreateContainerCmd
public java.lang.Boolean isAttachStdout()
isAttachStdout
in interface CreateContainerCmd
public java.lang.Boolean isNetworkDisabled()
isNetworkDisabled
in interface CreateContainerCmd
public java.lang.Boolean getOomKillDisable()
getOomKillDisable
in interface CreateContainerCmd
public java.lang.Boolean getPrivileged()
getPrivileged
in interface CreateContainerCmd
public java.lang.Boolean getPublishAllPorts()
getPublishAllPorts
in interface CreateContainerCmd
public java.lang.Boolean getReadonlyRootfs()
getReadonlyRootfs
in interface CreateContainerCmd
public java.lang.Boolean isStdInOnce()
isStdInOnce
in interface CreateContainerCmd
public java.lang.Boolean isStdinOpen()
isStdinOpen
in interface CreateContainerCmd
public java.lang.Boolean isTty()
isTty
in interface CreateContainerCmd
public java.lang.String getPidMode()
getPidMode
in interface CreateContainerCmd
public HostConfig getHostConfig()
getHostConfig
in interface CreateContainerCmd
public java.lang.String getCgroupParent()
getCgroupParent
in interface CreateContainerCmd
public CreateContainerCmd withAliases(java.lang.String... aliases)
CreateContainerCmd
withAliases
in interface CreateContainerCmd
aliases
- on ore more aliasespublic CreateContainerCmd withAliases(java.util.List<java.lang.String> aliases)
CreateContainerCmd
withAliases
in interface CreateContainerCmd
aliases
- on ore more aliasespublic CreateContainerCmd withAttachStderr(java.lang.Boolean attachStderr)
withAttachStderr
in interface CreateContainerCmd
public CreateContainerCmd withAttachStdin(java.lang.Boolean attachStdin)
withAttachStdin
in interface CreateContainerCmd
public CreateContainerCmd withAttachStdout(java.lang.Boolean attachStdout)
withAttachStdout
in interface CreateContainerCmd
public CreateContainerCmd withBinds(Bind... binds)
withBinds
in interface CreateContainerCmd
public CreateContainerCmd withBinds(java.util.List<Bind> binds)
withBinds
in interface CreateContainerCmd
public CreateContainerCmd withBlkioWeight(java.lang.Integer blkioWeight)
withBlkioWeight
in interface CreateContainerCmd
public CreateContainerCmd withCapAdd(Capability... capAdd)
CreateContainerCmd
Capability.MKNOD
allows the container to create special files using the 'mknod' command.withCapAdd
in interface CreateContainerCmd
public CreateContainerCmd withCapAdd(java.util.List<Capability> capAdd)
CreateContainerCmd
Capability.MKNOD
allows the container to create special files using the 'mknod' command.withCapAdd
in interface CreateContainerCmd
public CreateContainerCmd withCapDrop(Capability... capDrop)
CreateContainerCmd
Capability.CHOWN
prevents the container from changing the owner of any files.withCapDrop
in interface CreateContainerCmd
public CreateContainerCmd withCapDrop(java.util.List<Capability> capDrop)
CreateContainerCmd
Capability.CHOWN
prevents the container from changing the owner of any files.withCapDrop
in interface CreateContainerCmd
public CreateContainerCmd withCmd(java.lang.String... cmd)
withCmd
in interface CreateContainerCmd
public CreateContainerCmd withCmd(java.util.List<java.lang.String> cmd)
withCmd
in interface CreateContainerCmd
public CreateContainerCmd withContainerIDFile(java.lang.String containerIDFile)
withContainerIDFile
in interface CreateContainerCmd
public CreateContainerCmd withCpuPeriod(java.lang.Integer cpuPeriod)
withCpuPeriod
in interface CreateContainerCmd
public CreateContainerCmd withCpusetCpus(java.lang.String cpusetCpus)
withCpusetCpus
in interface CreateContainerCmd
public CreateContainerCmd withCpusetMems(java.lang.String cpusetMems)
withCpusetMems
in interface CreateContainerCmd
public CreateContainerCmd withCpuShares(java.lang.Integer cpuShares)
withCpuShares
in interface CreateContainerCmd
public CreateContainerCmd withDevices(Device... devices)
CreateContainerCmd
withDevices
in interface CreateContainerCmd
public CreateContainerCmd withDevices(java.util.List<Device> devices)
CreateContainerCmd
withDevices
in interface CreateContainerCmd
public CreateContainerCmd withDns(java.lang.String... dns)
CreateContainerCmd
withDns
in interface CreateContainerCmd
public CreateContainerCmd withDns(java.util.List<java.lang.String> dns)
CreateContainerCmd
withDns
in interface CreateContainerCmd
public CreateContainerCmd withDnsSearch(java.lang.String... dnsSearch)
CreateContainerCmd
withDnsSearch
in interface CreateContainerCmd
public CreateContainerCmd withDnsSearch(java.util.List<java.lang.String> dnsSearch)
CreateContainerCmd
withDnsSearch
in interface CreateContainerCmd
public CreateContainerCmd withDomainName(java.lang.String domainName)
withDomainName
in interface CreateContainerCmd
public CreateContainerCmd withEntrypoint(java.lang.String... entrypoint)
withEntrypoint
in interface CreateContainerCmd
public CreateContainerCmd withEntrypoint(java.util.List<java.lang.String> entrypoint)
withEntrypoint
in interface CreateContainerCmd
public CreateContainerCmd withEnv(java.lang.String... env)
withEnv
in interface CreateContainerCmd
public CreateContainerCmd withEnv(java.util.List<java.lang.String> env)
withEnv
in interface CreateContainerCmd
public CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
withExposedPorts
in interface CreateContainerCmd
public CreateContainerCmd withStopSignal(java.lang.String stopSignal)
withStopSignal
in interface CreateContainerCmd
public CreateContainerCmd withExposedPorts(java.util.List<ExposedPort> exposedPorts)
withExposedPorts
in interface CreateContainerCmd
public CreateContainerCmd withExtraHosts(java.lang.String... extraHosts)
CreateContainerCmd
withExtraHosts
in interface CreateContainerCmd
public CreateContainerCmd withExtraHosts(java.util.List<java.lang.String> extraHosts)
CreateContainerCmd
withExtraHosts
in interface CreateContainerCmd
public CreateContainerCmd withHostName(java.lang.String hostName)
withHostName
in interface CreateContainerCmd
public CreateContainerCmd withImage(java.lang.String image)
withImage
in interface CreateContainerCmd
public CreateContainerCmd withIpv4Address(java.lang.String ipv4Address)
withIpv4Address
in interface CreateContainerCmd
public CreateContainerCmd withIpv6Address(java.lang.String ipv6Address)
withIpv6Address
in interface CreateContainerCmd
public CreateContainerCmd withLabels(java.util.Map<java.lang.String,java.lang.String> labels)
withLabels
in interface CreateContainerCmd
public CreateContainerCmd withLinks(Link... links)
CreateContainerCmd
withLinks
in interface CreateContainerCmd
public CreateContainerCmd withLinks(java.util.List<Link> links)
CreateContainerCmd
withLinks
in interface CreateContainerCmd
public CreateContainerCmd withLxcConf(LxcConf... lxcConf)
withLxcConf
in interface CreateContainerCmd
public CreateContainerCmd withLxcConf(java.util.List<LxcConf> lxcConf)
withLxcConf
in interface CreateContainerCmd
public CreateContainerCmd withLogConfig(LogConfig logConfig)
withLogConfig
in interface CreateContainerCmd
public CreateContainerCmd withMacAddress(java.lang.String macAddress)
withMacAddress
in interface CreateContainerCmd
public CreateContainerCmd withMemory(java.lang.Long memory)
withMemory
in interface CreateContainerCmd
public CreateContainerCmd withMemorySwap(java.lang.Long memorySwap)
withMemorySwap
in interface CreateContainerCmd
public CreateContainerCmd withName(java.lang.String name)
withName
in interface CreateContainerCmd
public CreateContainerCmd withNetworkDisabled(java.lang.Boolean disableNetwork)
withNetworkDisabled
in interface CreateContainerCmd
public CreateContainerCmd withNetworkMode(java.lang.String networkMode)
CreateContainerCmd
withNetworkMode
in interface CreateContainerCmd
public CreateContainerCmd withOomKillDisable(java.lang.Boolean oomKillDisable)
withOomKillDisable
in interface CreateContainerCmd
public CreateContainerCmd withPortBindings(PortBinding... portBindings)
CreateContainerCmd
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.withPortBindings
in interface CreateContainerCmd
public CreateContainerCmd withPortBindings(java.util.List<PortBinding> portBindings)
CreateContainerCmd
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.withPortBindings
in interface CreateContainerCmd
public CreateContainerCmd withPortBindings(Ports portBindings)
CreateContainerCmd
Ports
object.withPortBindings
in interface CreateContainerCmd
CreateContainerCmd.withPortBindings(PortBinding...)
public CreateContainerCmd withPortSpecs(java.lang.String... portSpecs)
withPortSpecs
in interface CreateContainerCmd
public CreateContainerCmd withPortSpecs(java.util.List<java.lang.String> portSpecs)
withPortSpecs
in interface CreateContainerCmd
public CreateContainerCmd withPrivileged(java.lang.Boolean privileged)
withPrivileged
in interface CreateContainerCmd
public CreateContainerCmd withPublishAllPorts(java.lang.Boolean publishAllPorts)
withPublishAllPorts
in interface CreateContainerCmd
public CreateContainerCmd withReadonlyRootfs(java.lang.Boolean readonlyRootfs)
withReadonlyRootfs
in interface CreateContainerCmd
public CreateContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
CreateContainerCmd
RestartPolicy
for the container. Defaults to RestartPolicy.noRestart()
withRestartPolicy
in interface CreateContainerCmd
public CreateContainerCmd withStdInOnce(java.lang.Boolean stdInOnce)
withStdInOnce
in interface CreateContainerCmd
public CreateContainerCmd withStdinOpen(java.lang.Boolean stdinOpen)
withStdinOpen
in interface CreateContainerCmd
public CreateContainerCmd withTty(java.lang.Boolean tty)
withTty
in interface CreateContainerCmd
public CreateContainerCmd withUlimits(Ulimit... ulimits)
withUlimits
in interface CreateContainerCmd
public CreateContainerCmd withUlimits(java.util.List<Ulimit> ulimits)
withUlimits
in interface CreateContainerCmd
public CreateContainerCmd withUser(java.lang.String user)
withUser
in interface CreateContainerCmd
public CreateContainerCmd withVolumes(Volume... volumes)
withVolumes
in interface CreateContainerCmd
public CreateContainerCmd withVolumes(java.util.List<Volume> volumes)
withVolumes
in interface CreateContainerCmd
public CreateContainerCmd withVolumesFrom(VolumesFrom... volumesFrom)
withVolumesFrom
in interface CreateContainerCmd
public CreateContainerCmd withVolumesFrom(java.util.List<VolumesFrom> volumesFrom)
withVolumesFrom
in interface CreateContainerCmd
public CreateContainerCmd withWorkingDir(java.lang.String workingDir)
withWorkingDir
in interface CreateContainerCmd
public CreateContainerCmd withCgroupParent(java.lang.String cgroupParent)
withCgroupParent
in interface CreateContainerCmd
public CreateContainerCmd withPidMode(java.lang.String pidMode)
CreateContainerCmd
withPidMode
in interface CreateContainerCmd
public CreateContainerCmd withHostConfig(HostConfig hostConfig)
withHostConfig
in interface CreateContainerCmd
public java.lang.String toString()
toString
in class AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018. All Rights Reserved.