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