public interface CreateContainerCmd extends DockerCmd<CreateContainerResponse>
Modifier and Type | Interface and Description |
---|---|
static interface |
CreateContainerCmd.Exec |
CreateContainerCmd withName(String name)
String getName()
CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
ExposedPort[] getExposedPorts()
boolean isDisableNetwork()
String getWorkingDir()
CreateContainerCmd withWorkingDir(String workingDir)
String getHostName()
CreateContainerCmd withDisableNetwork(boolean disableNetwork)
CreateContainerCmd withHostName(String hostName)
String[] getPortSpecs()
CreateContainerCmd withPortSpecs(String... portSpecs)
String getUser()
CreateContainerCmd withUser(String user)
boolean isTty()
CreateContainerCmd withTty(boolean tty)
boolean isStdinOpen()
CreateContainerCmd withStdinOpen(boolean stdinOpen)
boolean isStdInOnce()
CreateContainerCmd withStdInOnce(boolean stdInOnce)
long getMemoryLimit()
CreateContainerCmd withMemoryLimit(long memoryLimit)
long getMemorySwap()
CreateContainerCmd withMemorySwap(long memorySwap)
int getCpuShares()
CreateContainerCmd withCpuShares(int cpuShares)
boolean isAttachStdin()
CreateContainerCmd withAttachStdin(boolean attachStdin)
boolean isAttachStdout()
CreateContainerCmd withAttachStdout(boolean attachStdout)
boolean isAttachStderr()
CreateContainerCmd withAttachStderr(boolean attachStderr)
String[] getEnv()
CreateContainerCmd withEnv(String... env)
String[] getCmd()
CreateContainerCmd withCmd(String... cmd)
String[] getDns()
CreateContainerCmd withDns(String... dns)
String getImage()
CreateContainerCmd withImage(String image)
Volume[] getVolumes()
CreateContainerCmd withVolumes(Volume... volumes)
VolumesFrom[] getVolumesFrom()
CreateContainerCmd withVolumesFrom(VolumesFrom... volumesFrom)
HostConfig getHostConfig()
CreateContainerCmd withHostConfig(HostConfig hostConfig)
Capability[] getCapAdd()
CreateContainerCmd withCapAdd(Capability... capAdd)
Capability.MKNOD
allows the container to create special files using the 'mknod' command.Capability[] getCapDrop()
CreateContainerCmd withCapDrop(Capability... capDrop)
Capability.CHOWN
prevents the container from changing the owner of any files.String[] getEntrypoint()
CreateContainerCmd withEntrypoint(String... entrypoint)
CreateContainerResponse exec() throws NotFoundException, ConflictException
exec
in interface DockerCmd<CreateContainerResponse>
NotFoundException
- No such containerConflictException
- Named container already existsCopyright © 2015. All Rights Reserved.