public class CreateContainerCmdImpl extends AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse> implements CreateContainerCmd
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateContainerCmdImpl.NetworkingConfig |
CreateContainerCmd.Execexecution| Constructor and Description |
|---|
CreateContainerCmdImpl(CreateContainerCmd.Exec exec,
String image) |
close, registryAuthpublic CreateContainerCmdImpl(CreateContainerCmd.Exec exec, String image)
public CreateContainerResponse exec() throws NotFoundException, ConflictException
exec in interface CreateContainerCmdexec in interface SyncDockerCmd<CreateContainerResponse>exec in class AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse>NotFoundException - No such containerConflictException - Named container already existspublic List<String> getAliases()
getAliases in interface CreateContainerCmdpublic Bind[] getBinds()
getBinds in interface CreateContainerCmdpublic Integer getBlkioWeight()
getBlkioWeight in interface CreateContainerCmdpublic Capability[] getCapAdd()
getCapAdd in interface CreateContainerCmdpublic Capability[] getCapDrop()
getCapDrop in interface CreateContainerCmdpublic String[] getCmd()
getCmd in interface CreateContainerCmdpublic Integer getCpuPeriod()
getCpuPeriod in interface CreateContainerCmdpublic String getCpusetCpus()
getCpusetCpus in interface CreateContainerCmdpublic String getCpusetMems()
getCpusetMems in interface CreateContainerCmdpublic Integer getCpuShares()
getCpuShares in interface CreateContainerCmdpublic Device[] getDevices()
getDevices in interface CreateContainerCmdpublic String[] getDns()
getDns in interface CreateContainerCmdpublic String[] getDnsSearch()
getDnsSearch in interface CreateContainerCmdpublic String getDomainName()
getDomainName in interface CreateContainerCmdpublic String[] getEntrypoint()
getEntrypoint in interface CreateContainerCmdpublic String[] getEnv()
getEnv in interface CreateContainerCmdpublic ExposedPort[] getExposedPorts()
getExposedPorts in interface CreateContainerCmdpublic String getStopSignal()
getStopSignal in interface CreateContainerCmdstopSignalpublic String[] getExtraHosts()
getExtraHosts in interface CreateContainerCmdpublic String getHostName()
getHostName in interface CreateContainerCmdpublic String getImage()
getImage in interface CreateContainerCmdpublic String getIpv4Address()
getIpv4Address in interface CreateContainerCmdpublic String getIpv6Address()
getIpv6Address in interface CreateContainerCmdpublic Map<String,String> getLabels()
getLabels in interface CreateContainerCmdpublic Link[] getLinks()
getLinks in interface CreateContainerCmdpublic LxcConf[] getLxcConf()
getLxcConf in interface CreateContainerCmdpublic LogConfig getLogConfig()
getLogConfig in interface CreateContainerCmdpublic String getMacAddress()
getMacAddress in interface CreateContainerCmdpublic Long getMemory()
getMemory in interface CreateContainerCmdpublic Long getMemorySwap()
getMemorySwap in interface CreateContainerCmdpublic String getName()
getName in interface CreateContainerCmdpublic String getNetworkMode()
getNetworkMode in interface CreateContainerCmdpublic Ports getPortBindings()
getPortBindings in interface CreateContainerCmdpublic String[] getPortSpecs()
getPortSpecs in interface CreateContainerCmdpublic RestartPolicy getRestartPolicy()
getRestartPolicy in interface CreateContainerCmdpublic Ulimit[] getUlimits()
getUlimits in interface CreateContainerCmdpublic String getUser()
getUser in interface CreateContainerCmdpublic Volume[] getVolumes()
getVolumes in interface CreateContainerCmdpublic VolumesFrom[] getVolumesFrom()
getVolumesFrom in interface CreateContainerCmdpublic String getWorkingDir()
getWorkingDir in interface CreateContainerCmdpublic Boolean isAttachStderr()
isAttachStderr in interface CreateContainerCmdpublic Boolean isAttachStdin()
isAttachStdin in interface CreateContainerCmdpublic Boolean isAttachStdout()
isAttachStdout in interface CreateContainerCmdpublic Boolean isNetworkDisabled()
isNetworkDisabled in interface CreateContainerCmdpublic Boolean getOomKillDisable()
getOomKillDisable in interface CreateContainerCmdpublic Boolean getPrivileged()
getPrivileged in interface CreateContainerCmdpublic Boolean getPublishAllPorts()
getPublishAllPorts in interface CreateContainerCmdpublic Boolean getReadonlyRootfs()
getReadonlyRootfs in interface CreateContainerCmdpublic Boolean isStdInOnce()
isStdInOnce in interface CreateContainerCmdpublic Boolean isStdinOpen()
isStdinOpen in interface CreateContainerCmdpublic Boolean isTty()
isTty in interface CreateContainerCmdpublic String getPidMode()
getPidMode in interface CreateContainerCmdpublic HostConfig getHostConfig()
getHostConfig in interface CreateContainerCmdpublic String getCgroupParent()
getCgroupParent in interface CreateContainerCmdpublic CreateContainerCmd withAliases(String... aliases)
CreateContainerCmdwithAliases in interface CreateContainerCmdaliases - on ore more aliasespublic CreateContainerCmd withAliases(List<String> aliases)
CreateContainerCmdwithAliases in interface CreateContainerCmdaliases - on ore more aliasespublic CreateContainerCmd withAttachStderr(Boolean attachStderr)
withAttachStderr in interface CreateContainerCmdpublic CreateContainerCmd withAttachStdin(Boolean attachStdin)
withAttachStdin in interface CreateContainerCmdpublic CreateContainerCmd withAttachStdout(Boolean attachStdout)
withAttachStdout in interface CreateContainerCmdpublic CreateContainerCmd withBinds(Bind... binds)
withBinds in interface CreateContainerCmdpublic CreateContainerCmd withBinds(List<Bind> binds)
withBinds in interface CreateContainerCmdpublic CreateContainerCmd withBlkioWeight(Integer blkioWeight)
withBlkioWeight in interface CreateContainerCmdpublic CreateContainerCmd withCapAdd(Capability... capAdd)
CreateContainerCmdCapability.MKNOD allows the container to create special files using the 'mknod' command.withCapAdd in interface CreateContainerCmdpublic CreateContainerCmd withCapAdd(List<Capability> capAdd)
CreateContainerCmdCapability.MKNOD allows the container to create special files using the 'mknod' command.withCapAdd in interface CreateContainerCmdpublic CreateContainerCmd withCapDrop(Capability... capDrop)
CreateContainerCmdCapability.CHOWN prevents the container from changing the owner of any files.withCapDrop in interface CreateContainerCmdpublic CreateContainerCmd withCapDrop(List<Capability> capDrop)
CreateContainerCmdCapability.CHOWN prevents the container from changing the owner of any files.withCapDrop in interface CreateContainerCmdpublic CreateContainerCmd withCmd(String... cmd)
withCmd in interface CreateContainerCmdpublic CreateContainerCmd withCmd(List<String> cmd)
withCmd in interface CreateContainerCmdpublic CreateContainerCmd withContainerIDFile(String containerIDFile)
withContainerIDFile in interface CreateContainerCmdpublic CreateContainerCmd withCpuPeriod(Integer cpuPeriod)
withCpuPeriod in interface CreateContainerCmdpublic CreateContainerCmd withCpusetCpus(String cpusetCpus)
withCpusetCpus in interface CreateContainerCmdpublic CreateContainerCmd withCpusetMems(String cpusetMems)
withCpusetMems in interface CreateContainerCmdpublic CreateContainerCmd withCpuShares(Integer cpuShares)
withCpuShares in interface CreateContainerCmdpublic CreateContainerCmd withDevices(Device... devices)
CreateContainerCmdwithDevices in interface CreateContainerCmdpublic CreateContainerCmd withDevices(List<Device> devices)
CreateContainerCmdwithDevices in interface CreateContainerCmdpublic CreateContainerCmd withDns(String... dns)
CreateContainerCmdwithDns in interface CreateContainerCmdpublic CreateContainerCmd withDns(List<String> dns)
CreateContainerCmdwithDns in interface CreateContainerCmdpublic CreateContainerCmd withDnsSearch(String... dnsSearch)
CreateContainerCmdwithDnsSearch in interface CreateContainerCmdpublic CreateContainerCmd withDnsSearch(List<String> dnsSearch)
CreateContainerCmdwithDnsSearch in interface CreateContainerCmdpublic CreateContainerCmd withDomainName(String domainName)
withDomainName in interface CreateContainerCmdpublic CreateContainerCmd withEntrypoint(String... entrypoint)
withEntrypoint in interface CreateContainerCmdpublic CreateContainerCmd withEntrypoint(List<String> entrypoint)
withEntrypoint in interface CreateContainerCmdpublic CreateContainerCmd withEnv(String... env)
withEnv in interface CreateContainerCmdpublic CreateContainerCmd withEnv(List<String> env)
withEnv in interface CreateContainerCmdpublic CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
withExposedPorts in interface CreateContainerCmdpublic CreateContainerCmd withStopSignal(String stopSignal)
withStopSignal in interface CreateContainerCmdpublic CreateContainerCmd withExposedPorts(List<ExposedPort> exposedPorts)
withExposedPorts in interface CreateContainerCmdpublic CreateContainerCmd withExtraHosts(String... extraHosts)
CreateContainerCmdwithExtraHosts in interface CreateContainerCmdpublic CreateContainerCmd withExtraHosts(List<String> extraHosts)
CreateContainerCmdwithExtraHosts in interface CreateContainerCmdpublic CreateContainerCmd withHostName(String hostName)
withHostName in interface CreateContainerCmdpublic CreateContainerCmd withImage(String image)
withImage in interface CreateContainerCmdpublic CreateContainerCmd withIpv4Address(String ipv4Address)
withIpv4Address in interface CreateContainerCmdpublic CreateContainerCmd withIpv6Address(String ipv6Address)
withIpv6Address in interface CreateContainerCmdpublic CreateContainerCmd withLabels(Map<String,String> labels)
withLabels in interface CreateContainerCmdpublic CreateContainerCmd withLinks(Link... links)
CreateContainerCmdwithLinks in interface CreateContainerCmdpublic CreateContainerCmd withLinks(List<Link> links)
CreateContainerCmdwithLinks in interface CreateContainerCmdpublic CreateContainerCmd withLxcConf(LxcConf... lxcConf)
withLxcConf in interface CreateContainerCmdpublic CreateContainerCmd withLxcConf(List<LxcConf> lxcConf)
withLxcConf in interface CreateContainerCmdpublic CreateContainerCmd withLogConfig(LogConfig logConfig)
withLogConfig in interface CreateContainerCmdpublic CreateContainerCmd withMacAddress(String macAddress)
withMacAddress in interface CreateContainerCmdpublic CreateContainerCmd withMemory(Long memory)
withMemory in interface CreateContainerCmdpublic CreateContainerCmd withMemorySwap(Long memorySwap)
withMemorySwap in interface CreateContainerCmdpublic CreateContainerCmd withName(String name)
withName in interface CreateContainerCmdpublic CreateContainerCmd withNetworkDisabled(Boolean disableNetwork)
withNetworkDisabled in interface CreateContainerCmdpublic CreateContainerCmd withNetworkMode(String networkMode)
CreateContainerCmdwithNetworkMode in interface CreateContainerCmdpublic CreateContainerCmd withOomKillDisable(Boolean oomKillDisable)
withOomKillDisable in interface CreateContainerCmdpublic CreateContainerCmd withPortBindings(PortBinding... portBindings)
CreateContainerCmdPortBindings. This corresponds to the --publish (-p) option of the
docker run CLI command.withPortBindings in interface CreateContainerCmdpublic CreateContainerCmd withPortBindings(List<PortBinding> portBindings)
CreateContainerCmdPortBindings. This corresponds to the --publish (-p) option of the
docker run CLI command.withPortBindings in interface CreateContainerCmdpublic CreateContainerCmd withPortBindings(Ports portBindings)
CreateContainerCmdPorts object.withPortBindings in interface CreateContainerCmdCreateContainerCmd.withPortBindings(PortBinding...)public CreateContainerCmd withPortSpecs(String... portSpecs)
withPortSpecs in interface CreateContainerCmdpublic CreateContainerCmd withPortSpecs(List<String> portSpecs)
withPortSpecs in interface CreateContainerCmdpublic CreateContainerCmd withPrivileged(Boolean privileged)
withPrivileged in interface CreateContainerCmdpublic CreateContainerCmd withPublishAllPorts(Boolean publishAllPorts)
withPublishAllPorts in interface CreateContainerCmdpublic CreateContainerCmd withReadonlyRootfs(Boolean readonlyRootfs)
withReadonlyRootfs in interface CreateContainerCmdpublic CreateContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
CreateContainerCmdRestartPolicy for the container. Defaults to RestartPolicy.noRestart()withRestartPolicy in interface CreateContainerCmdpublic CreateContainerCmd withStdInOnce(Boolean stdInOnce)
withStdInOnce in interface CreateContainerCmdpublic CreateContainerCmd withStdinOpen(Boolean stdinOpen)
withStdinOpen in interface CreateContainerCmdpublic CreateContainerCmd withTty(Boolean tty)
withTty in interface CreateContainerCmdpublic CreateContainerCmd withUlimits(Ulimit... ulimits)
withUlimits in interface CreateContainerCmdpublic CreateContainerCmd withUlimits(List<Ulimit> ulimits)
withUlimits in interface CreateContainerCmdpublic CreateContainerCmd withUser(String user)
withUser in interface CreateContainerCmdpublic CreateContainerCmd withVolumes(Volume... volumes)
withVolumes in interface CreateContainerCmdpublic CreateContainerCmd withVolumes(List<Volume> volumes)
withVolumes in interface CreateContainerCmdpublic CreateContainerCmd withVolumesFrom(VolumesFrom... volumesFrom)
withVolumesFrom in interface CreateContainerCmdpublic CreateContainerCmd withVolumesFrom(List<VolumesFrom> volumesFrom)
withVolumesFrom in interface CreateContainerCmdpublic CreateContainerCmd withWorkingDir(String workingDir)
withWorkingDir in interface CreateContainerCmdpublic CreateContainerCmd withCgroupParent(String cgroupParent)
withCgroupParent in interface CreateContainerCmdpublic CreateContainerCmd withPidMode(String pidMode)
CreateContainerCmdwithPidMode in interface CreateContainerCmdpublic CreateContainerCmd withHostConfig(HostConfig hostConfig)
withHostConfig in interface CreateContainerCmdpublic String toString()
toString in class AbstrDockerCmd<CreateContainerCmd,CreateContainerResponse>Copyright © 2017. All Rights Reserved.