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()
getHostConfig()
@Deprecated default CreateContainerCmd withBinds(Bind... binds)
getHostConfig()
@Deprecated default CreateContainerCmd withBinds(List<Bind> binds)
getHostConfig()
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()
getHostConfig()
@Deprecated default CreateContainerCmd withLinks(Link... links)
getHostConfig()
@Deprecated default CreateContainerCmd withLinks(List<Link> links)
getHostConfig()
@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()
getHostConfig()
@Deprecated default CreateContainerCmd withMemory(Long memory)
getHostConfig()
@Deprecated @CheckForNull default Long getMemorySwap()
getHostConfig()
@Deprecated default CreateContainerCmd withMemorySwap(Long memorySwap)
getHostConfig()
@CheckForNull String getName()
@Deprecated @CheckForNull default String getNetworkMode()
getHostConfig()
@Deprecated default CreateContainerCmd withNetworkMode(String networkMode)
getHostConfig()
@Deprecated @CheckForNull default Ports getPortBindings()
getHostConfig()
@Deprecated default CreateContainerCmd withPortBindings(PortBinding... portBindings)
getHostConfig()
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.@Deprecated default CreateContainerCmd withPortBindings(List<PortBinding> portBindings)
getHostConfig()
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.@Deprecated default CreateContainerCmd withPortBindings(Ports portBindings)
getHostConfig()
Ports
object.CreateContainerCmd withName(String name)
@CheckForNull String[] getPortSpecs()
CreateContainerCmd withPortSpecs(String... portSpecs)
CreateContainerCmd withPortSpecs(List<String> portSpecs)
@Deprecated @CheckForNull default Boolean getPrivileged()
getHostConfig()
@Deprecated default CreateContainerCmd withPrivileged(Boolean privileged)
getHostConfig()
@CheckForNull String getUser()
CreateContainerCmd withUser(String user)
@CheckForNull Volume[] getVolumes()
CreateContainerCmd withVolumes(Volume... volumes)
CreateContainerCmd withVolumes(List<Volume> volumes)
@Deprecated @CheckForNull default VolumesFrom[] getVolumesFrom()
getHostConfig()
@Deprecated default CreateContainerCmd withVolumesFrom(VolumesFrom... volumesFrom)
getHostConfig()
@Deprecated default CreateContainerCmd withVolumesFrom(List<VolumesFrom> volumesFrom)
getHostConfig()
@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()
getHostConfig()
@Deprecated default CreateContainerCmd withPublishAllPorts(Boolean publishAllPorts)
getHostConfig()
@CheckForNull @Deprecated default String[] getExtraHosts()
getHostConfig()
@Deprecated default CreateContainerCmd withExtraHosts(String... extraHosts)
getHostConfig()
@Deprecated default CreateContainerCmd withExtraHosts(List<String> extraHosts)
getHostConfig()
@CheckForNull @Deprecated default Capability[] getCapAdd()
getHostConfig()
@Deprecated default CreateContainerCmd withCapAdd(Capability... capAdd)
getHostConfig()
Capability.MKNOD
allows the container to create special files using the 'mknod' command.@Deprecated default CreateContainerCmd withCapAdd(List<Capability> capAdd)
getHostConfig()
Capability.MKNOD
allows the container to create special files using the 'mknod' command.@CheckForNull @Deprecated default Capability[] getCapDrop()
getHostConfig()
@Deprecated default CreateContainerCmd withCapDrop(Capability... capDrop)
getHostConfig()
Capability.CHOWN
prevents the container from changing the owner of any files.@Deprecated default CreateContainerCmd withCapDrop(List<Capability> capDrop)
getHostConfig()
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()
getHostConfig()
@CheckForNull @Deprecated default String getCgroupParent()
getHostConfig()
@Deprecated @CheckForNull default Integer getCpuPeriod()
getHostConfig()
@Deprecated @CheckForNull default Integer getCpuShares()
getHostConfig()
@Deprecated @CheckForNull default String getCpusetCpus()
getHostConfig()
@Deprecated @CheckForNull default String getCpusetMems()
getHostConfig()
@Deprecated @CheckForNull default Device[] getDevices()
getHostConfig()
@Deprecated @CheckForNull default String[] getDns()
getHostConfig()
@Deprecated @CheckForNull default String[] getDnsSearch()
getHostConfig()
@Deprecated @CheckForNull default LogConfig getLogConfig()
getHostConfig()
@Deprecated @CheckForNull default LxcConf[] getLxcConf()
getHostConfig()
@Deprecated @CheckForNull default Boolean getOomKillDisable()
getHostConfig()
@Deprecated @CheckForNull default String getPidMode()
getHostConfig()
@Deprecated @CheckForNull default Boolean getReadonlyRootfs()
getHostConfig()
@Deprecated @CheckForNull default RestartPolicy getRestartPolicy()
getHostConfig()
@Deprecated @CheckForNull default Ulimit[] getUlimits()
getHostConfig()
@Deprecated default CreateContainerCmd withBlkioWeight(Integer blkioWeight)
getHostConfig()
@Deprecated default CreateContainerCmd withCgroupParent(String cgroupParent)
getHostConfig()
@Deprecated default CreateContainerCmd withContainerIDFile(String containerIDFile)
getHostConfig()
@Deprecated default CreateContainerCmd withCpuPeriod(Integer cpuPeriod)
getHostConfig()
@Deprecated default CreateContainerCmd withCpuShares(Integer cpuShares)
getHostConfig()
@Deprecated default CreateContainerCmd withCpusetCpus(String cpusetCpus)
getHostConfig()
@Deprecated default CreateContainerCmd withCpusetMems(String cpusetMems)
getHostConfig()
@Deprecated default CreateContainerCmd withDevices(Device... devices)
getHostConfig()
@Deprecated default CreateContainerCmd withDevices(List<Device> devices)
getHostConfig()
@Deprecated default CreateContainerCmd withDns(String... dns)
getHostConfig()
@Deprecated default CreateContainerCmd withDns(List<String> dns)
getHostConfig()
@Deprecated default CreateContainerCmd withDnsSearch(String... dnsSearch)
getHostConfig()
@Deprecated default CreateContainerCmd withDnsSearch(List<String> dnsSearch)
getHostConfig()
@Deprecated default CreateContainerCmd withLogConfig(LogConfig logConfig)
getHostConfig()
@Deprecated default CreateContainerCmd withLxcConf(LxcConf... lxcConf)
getHostConfig()
@Deprecated default CreateContainerCmd withLxcConf(List<LxcConf> lxcConf)
getHostConfig()
@Deprecated default CreateContainerCmd withOomKillDisable(Boolean oomKillDisable)
getHostConfig()
@Deprecated default CreateContainerCmd withPidMode(String pidMode)
getHostConfig()
@Deprecated default CreateContainerCmd withReadonlyRootfs(Boolean readonlyRootfs)
getHostConfig()
@Deprecated default CreateContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
getHostConfig()
RestartPolicy
for the container. Defaults to RestartPolicy.noRestart()
@Deprecated default CreateContainerCmd withUlimits(Ulimit... ulimits)
getHostConfig()
@Deprecated default CreateContainerCmd withUlimits(List<Ulimit> ulimits)
getHostConfig()
@CheckForNull default String getPlatform()
CreateContainerCmd withPlatform(String platform)
CreateContainerResponse exec() throws NotFoundException, ConflictException
exec
in interface SyncDockerCmd<CreateContainerResponse>
NotFoundException
- No such containerConflictException
- Named container already existsCopyright © 2024. All rights reserved.