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