com.github.dockerjava.api.command
Interface CreateContainerCmd
- All Superinterfaces:
- DockerCmd<CreateContainerResponse>
- All Known Implementing Classes:
- CreateContainerCmdImpl
public interface CreateContainerCmd
- extends DockerCmd<CreateContainerResponse>
withName
CreateContainerCmd withName(String name)
getName
String getName()
withExposedPorts
CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
getExposedPorts
ExposedPort[] getExposedPorts()
isDisableNetwork
boolean isDisableNetwork()
getWorkingDir
String getWorkingDir()
withWorkingDir
CreateContainerCmd withWorkingDir(String workingDir)
getHostName
String getHostName()
withDisableNetwork
CreateContainerCmd withDisableNetwork(boolean disableNetwork)
withHostName
CreateContainerCmd withHostName(String hostName)
getPortSpecs
String[] getPortSpecs()
withPortSpecs
CreateContainerCmd withPortSpecs(String... portSpecs)
getUser
String getUser()
withUser
CreateContainerCmd withUser(String user)
isTty
boolean isTty()
withTty
CreateContainerCmd withTty(boolean tty)
isStdinOpen
boolean isStdinOpen()
withStdinOpen
CreateContainerCmd withStdinOpen(boolean stdinOpen)
isStdInOnce
boolean isStdInOnce()
withStdInOnce
CreateContainerCmd withStdInOnce(boolean stdInOnce)
getMemoryLimit
long getMemoryLimit()
withMemoryLimit
CreateContainerCmd withMemoryLimit(long memoryLimit)
getMemorySwap
long getMemorySwap()
withMemorySwap
CreateContainerCmd withMemorySwap(long memorySwap)
isAttachStdin
boolean isAttachStdin()
withAttachStdin
CreateContainerCmd withAttachStdin(boolean attachStdin)
isAttachStdout
boolean isAttachStdout()
withAttachStdout
CreateContainerCmd withAttachStdout(boolean attachStdout)
isAttachStderr
boolean isAttachStderr()
withAttachStderr
CreateContainerCmd withAttachStderr(boolean attachStderr)
getEnv
String[] getEnv()
withEnv
CreateContainerCmd withEnv(String... env)
getCmd
String[] getCmd()
withCmd
CreateContainerCmd withCmd(String... cmd)
getDns
String[] getDns()
withDns
CreateContainerCmd withDns(String... dns)
getImage
String getImage()
withImage
CreateContainerCmd withImage(String image)
getVolumes
Volume[] getVolumes()
withVolumes
CreateContainerCmd withVolumes(Volume... volumes)
getVolumesFrom
String[] getVolumesFrom()
withVolumesFrom
CreateContainerCmd withVolumesFrom(String... volumesFrom)
exec
CreateContainerResponse exec()
throws NotFoundException,
ConflictException
- Specified by:
exec
in interface DockerCmd<CreateContainerResponse>
- Throws:
NotFoundException
- No such container
ConflictException
- Named container already exists
Copyright © 2014. All rights reserved.