public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerResponse>
Modifier and Type | Interface and Description |
---|---|
static interface |
CreateContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
CreateContainerResponse |
exec() |
java.util.List<java.lang.String> |
getAliases() |
java.lang.Boolean |
getArgsEscaped() |
AuthConfig |
getAuthConfig() |
Bind[] |
getBinds()
Deprecated.
|
Capability[] |
getCapAdd()
Deprecated.
|
Capability[] |
getCapDrop()
Deprecated.
|
java.lang.String[] |
getCmd() |
java.lang.String |
getDomainName() |
java.lang.String[] |
getEntrypoint() |
java.lang.String[] |
getEnv() |
ExposedPort[] |
getExposedPorts() |
java.lang.String[] |
getExtraHosts()
Deprecated.
|
HealthCheck |
getHealthcheck() |
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()
Deprecated.
|
java.lang.String |
getMacAddress() |
java.lang.Long |
getMemory()
Deprecated.
|
java.lang.Long |
getMemorySwap()
Deprecated.
|
java.lang.String |
getName() |
java.lang.String |
getNetworkMode()
Deprecated.
|
java.util.List<java.lang.String> |
getOnBuild() |
Ports |
getPortBindings()
Deprecated.
|
java.lang.String[] |
getPortSpecs() |
java.lang.Boolean |
getPrivileged()
Deprecated.
|
java.lang.Boolean |
getPublishAllPorts()
Deprecated.
|
java.lang.String |
getStopSignal() |
java.lang.Integer |
getStopTimeout() |
java.lang.String |
getUser() |
Volume[] |
getVolumes() |
VolumesFrom[] |
getVolumesFrom()
Deprecated.
|
java.lang.String |
getWorkingDir() |
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() |
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 |
withArgsEscaped(java.lang.Boolean argsEscaped) |
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)
Deprecated.
|
CreateContainerCmd |
withBinds(java.util.List<Bind> binds)
Deprecated.
|
CreateContainerCmd |
withCapAdd(Capability... capAdd)
Deprecated.
|
CreateContainerCmd |
withCapAdd(java.util.List<Capability> capAdd)
Deprecated.
|
CreateContainerCmd |
withCapDrop(Capability... capDrop)
Deprecated.
|
CreateContainerCmd |
withCapDrop(java.util.List<Capability> capDrop)
Deprecated.
|
CreateContainerCmd |
withCmd(java.util.List<java.lang.String> cmd) |
CreateContainerCmd |
withCmd(java.lang.String... cmd) |
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)
Deprecated.
|
CreateContainerCmd |
withExtraHosts(java.lang.String... extraHosts)
Deprecated.
|
CreateContainerCmd |
withHealthcheck(HealthCheck healthCheck) |
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)
Deprecated.
|
CreateContainerCmd |
withLinks(java.util.List<Link> links)
Deprecated.
|
CreateContainerCmd |
withMacAddress(java.lang.String macAddress) |
CreateContainerCmd |
withMemory(java.lang.Long memory)
Deprecated.
|
CreateContainerCmd |
withMemorySwap(java.lang.Long memorySwap)
Deprecated.
|
CreateContainerCmd |
withName(java.lang.String name) |
CreateContainerCmd |
withNetworkDisabled(java.lang.Boolean disableNetwork) |
CreateContainerCmd |
withNetworkMode(java.lang.String networkMode)
Deprecated.
|
CreateContainerCmd |
withOnBuild(java.util.List<java.lang.String> onBuild) |
CreateContainerCmd |
withPortBindings(java.util.List<PortBinding> portBindings)
Deprecated.
|
CreateContainerCmd |
withPortBindings(PortBinding... portBindings)
Deprecated.
|
CreateContainerCmd |
withPortBindings(Ports portBindings)
Deprecated.
|
CreateContainerCmd |
withPortSpecs(java.util.List<java.lang.String> portSpecs) |
CreateContainerCmd |
withPortSpecs(java.lang.String... portSpecs) |
CreateContainerCmd |
withPrivileged(java.lang.Boolean privileged)
Deprecated.
|
CreateContainerCmd |
withPublishAllPorts(java.lang.Boolean publishAllPorts)
Deprecated.
|
CreateContainerCmd |
withStdInOnce(java.lang.Boolean stdInOnce) |
CreateContainerCmd |
withStdinOpen(java.lang.Boolean stdinOpen) |
CreateContainerCmd |
withStopSignal(java.lang.String stopSignal) |
CreateContainerCmd |
withStopTimeout(java.lang.Integer stopTimeout) |
CreateContainerCmd |
withTty(java.lang.Boolean tty) |
CreateContainerCmd |
withUser(java.lang.String user) |
CreateContainerCmd |
withVolumes(java.util.List<Volume> volumes) |
CreateContainerCmd |
withVolumes(Volume... volumes) |
CreateContainerCmd |
withVolumesFrom(java.util.List<VolumesFrom> volumesFrom)
Deprecated.
|
CreateContainerCmd |
withVolumesFrom(VolumesFrom... volumesFrom)
Deprecated.
|
CreateContainerCmd |
withWorkingDir(java.lang.String workingDir) |
@CheckForNull AuthConfig getAuthConfig()
CreateContainerCmd withAuthConfig(AuthConfig authConfig)
authConfig
- The optional auth config@CheckForNull java.util.List<java.lang.String> getAliases()
@Deprecated @CheckForNull Bind[] getBinds()
@Deprecated CreateContainerCmd withBinds(Bind... binds)
@Deprecated CreateContainerCmd withBinds(java.util.List<Bind> binds)
CreateContainerCmd withAliases(java.util.List<java.lang.String> aliases)
aliases
- on ore more aliasesCreateContainerCmd withAliases(java.lang.String... aliases)
aliases
- on ore more aliases@CheckForNull java.lang.String[] getCmd()
CreateContainerCmd withCmd(java.lang.String... cmd)
CreateContainerCmd withCmd(java.util.List<java.lang.String> cmd)
@CheckForNull HealthCheck getHealthcheck()
CreateContainerCmd withHealthcheck(HealthCheck healthCheck)
@CheckForNull java.lang.Boolean getArgsEscaped()
CreateContainerCmd withArgsEscaped(java.lang.Boolean argsEscaped)
@CheckForNull java.lang.String getDomainName()
CreateContainerCmd withDomainName(java.lang.String domainName)
@CheckForNull java.lang.String[] getEntrypoint()
CreateContainerCmd withEntrypoint(java.lang.String... entrypoint)
CreateContainerCmd withEntrypoint(java.util.List<java.lang.String> entrypoint)
@CheckForNull java.lang.String[] getEnv()
CreateContainerCmd withEnv(java.lang.String... env)
CreateContainerCmd withEnv(java.util.List<java.lang.String> env)
@CheckForNull ExposedPort[] getExposedPorts()
CreateContainerCmd withExposedPorts(java.util.List<ExposedPort> exposedPorts)
CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
@CheckForNull java.lang.String getStopSignal()
CreateContainerCmd withStopSignal(java.lang.String stopSignal)
@CheckForNull java.lang.Integer getStopTimeout()
CreateContainerCmd withStopTimeout(java.lang.Integer stopTimeout)
@CheckForNull java.lang.String getHostName()
CreateContainerCmd withHostName(java.lang.String hostName)
@CheckForNull java.lang.String getImage()
CreateContainerCmd withImage(java.lang.String image)
@CheckForNull java.lang.String getIpv4Address()
CreateContainerCmd withIpv4Address(java.lang.String ipv4Address)
@Deprecated @CheckForNull Link[] getLinks()
@Deprecated CreateContainerCmd withLinks(Link... links)
@Deprecated CreateContainerCmd withLinks(java.util.List<Link> links)
@CheckForNull java.lang.String getIpv6Address()
CreateContainerCmd withIpv6Address(java.lang.String ipv6Address)
@CheckForNull java.util.Map<java.lang.String,java.lang.String> getLabels()
CreateContainerCmd withLabels(java.util.Map<java.lang.String,java.lang.String> labels)
@CheckForNull java.lang.String getMacAddress()
CreateContainerCmd withMacAddress(java.lang.String macAddress)
@Deprecated @CheckForNull java.lang.Long getMemory()
@Deprecated CreateContainerCmd withMemory(java.lang.Long memory)
@Deprecated @CheckForNull java.lang.Long getMemorySwap()
@Deprecated CreateContainerCmd withMemorySwap(java.lang.Long memorySwap)
@CheckForNull java.lang.String getName()
@Deprecated @CheckForNull java.lang.String getNetworkMode()
@Deprecated CreateContainerCmd withNetworkMode(java.lang.String networkMode)
@Deprecated @CheckForNull Ports getPortBindings()
@Deprecated CreateContainerCmd withPortBindings(PortBinding... portBindings)
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.@Deprecated CreateContainerCmd withPortBindings(java.util.List<PortBinding> portBindings)
PortBinding
s. This corresponds to the --publish
(-p
) option of the
docker run
CLI command.@Deprecated CreateContainerCmd withPortBindings(Ports portBindings)
Ports
object.withPortBindings(PortBinding...)
CreateContainerCmd withName(java.lang.String name)
@CheckForNull java.lang.String[] getPortSpecs()
CreateContainerCmd withPortSpecs(java.lang.String... portSpecs)
CreateContainerCmd withPortSpecs(java.util.List<java.lang.String> portSpecs)
@Deprecated @CheckForNull java.lang.Boolean getPrivileged()
@Deprecated CreateContainerCmd withPrivileged(java.lang.Boolean privileged)
@CheckForNull java.lang.String getUser()
CreateContainerCmd withUser(java.lang.String user)
@CheckForNull Volume[] getVolumes()
CreateContainerCmd withVolumes(Volume... volumes)
CreateContainerCmd withVolumes(java.util.List<Volume> volumes)
@Deprecated @CheckForNull VolumesFrom[] getVolumesFrom()
@Deprecated CreateContainerCmd withVolumesFrom(VolumesFrom... volumesFrom)
@Deprecated CreateContainerCmd withVolumesFrom(java.util.List<VolumesFrom> volumesFrom)
@CheckForNull java.lang.String getWorkingDir()
CreateContainerCmd withWorkingDir(java.lang.String workingDir)
@CheckForNull java.lang.Boolean isAttachStderr()
CreateContainerCmd withAttachStderr(java.lang.Boolean attachStderr)
@CheckForNull java.lang.Boolean isAttachStdin()
CreateContainerCmd withAttachStdin(java.lang.Boolean attachStdin)
@CheckForNull java.lang.Boolean isAttachStdout()
CreateContainerCmd withAttachStdout(java.lang.Boolean attachStdout)
@CheckForNull java.lang.Boolean isNetworkDisabled()
CreateContainerCmd withNetworkDisabled(java.lang.Boolean disableNetwork)
@CheckForNull java.lang.Boolean isStdInOnce()
CreateContainerCmd withStdInOnce(java.lang.Boolean stdInOnce)
@CheckForNull java.lang.Boolean isStdinOpen()
CreateContainerCmd withStdinOpen(java.lang.Boolean stdinOpen)
@CheckForNull java.lang.Boolean isTty()
CreateContainerCmd withTty(java.lang.Boolean tty)
@Deprecated @CheckForNull java.lang.Boolean getPublishAllPorts()
@Deprecated CreateContainerCmd withPublishAllPorts(java.lang.Boolean publishAllPorts)
@CheckForNull @Deprecated java.lang.String[] getExtraHosts()
@Deprecated CreateContainerCmd withExtraHosts(java.lang.String... extraHosts)
@Deprecated CreateContainerCmd withExtraHosts(java.util.List<java.lang.String> extraHosts)
@CheckForNull @Deprecated Capability[] getCapAdd()
@Deprecated CreateContainerCmd withCapAdd(Capability... capAdd)
Capability.MKNOD
allows the container to create special files using the 'mknod' command.@Deprecated CreateContainerCmd withCapAdd(java.util.List<Capability> capAdd)
Capability.MKNOD
allows the container to create special files using the 'mknod' command.@CheckForNull @Deprecated Capability[] getCapDrop()
@Deprecated CreateContainerCmd withCapDrop(Capability... capDrop)
Capability.CHOWN
prevents the container from changing the owner of any files.@Deprecated CreateContainerCmd withCapDrop(java.util.List<Capability> capDrop)
Capability.CHOWN
prevents the container from changing the owner of any files.@CheckForNull java.util.List<java.lang.String> getOnBuild()
CreateContainerCmd withOnBuild(java.util.List<java.lang.String> onBuild)
@CheckForNull HostConfig getHostConfig()
CreateContainerCmd withHostConfig(HostConfig hostConfig)
CreateContainerResponse exec() throws NotFoundException, ConflictException
exec
in interface SyncDockerCmd<CreateContainerResponse>
NotFoundException
- No such containerConflictException
- Named container already existsCopyright © 2019. All Rights Reserved.