com.github.dockerjava.api.command
Interface CreateContainerCmd

All Superinterfaces:
DockerCmd<CreateContainerResponse>
All Known Implementing Classes:
CreateContainerCmdImpl

public interface CreateContainerCmd
extends DockerCmd<CreateContainerResponse>


Nested Class Summary
static interface CreateContainerCmd.Exec
           
 
Method Summary
 CreateContainerResponse exec()
           
 String[] getCmd()
           
 String[] getDns()
           
 String[] getEnv()
           
 ExposedPort[] getExposedPorts()
           
 String getHostName()
           
 String getImage()
           
 long getMemoryLimit()
           
 long getMemorySwap()
           
 String getName()
           
 String[] getPortSpecs()
           
 String getUser()
           
 Volume[] getVolumes()
           
 String[] getVolumesFrom()
           
 String getWorkingDir()
           
 boolean isAttachStderr()
           
 boolean isAttachStdin()
           
 boolean isAttachStdout()
           
 boolean isDisableNetwork()
           
 boolean isStdInOnce()
           
 boolean isStdinOpen()
           
 boolean isTty()
           
 CreateContainerCmd withAttachStderr(boolean attachStderr)
           
 CreateContainerCmd withAttachStdin(boolean attachStdin)
           
 CreateContainerCmd withAttachStdout(boolean attachStdout)
           
 CreateContainerCmd withCmd(String... cmd)
           
 CreateContainerCmd withDisableNetwork(boolean disableNetwork)
           
 CreateContainerCmd withDns(String... dns)
           
 CreateContainerCmd withEnv(String... env)
           
 CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
           
 CreateContainerCmd withHostName(String hostName)
           
 CreateContainerCmd withImage(String image)
           
 CreateContainerCmd withMemoryLimit(long memoryLimit)
           
 CreateContainerCmd withMemorySwap(long memorySwap)
           
 CreateContainerCmd withName(String name)
           
 CreateContainerCmd withPortSpecs(String... portSpecs)
           
 CreateContainerCmd withStdInOnce(boolean stdInOnce)
           
 CreateContainerCmd withStdinOpen(boolean stdinOpen)
           
 CreateContainerCmd withTty(boolean tty)
           
 CreateContainerCmd withUser(String user)
           
 CreateContainerCmd withVolumes(Volume... volumes)
           
 CreateContainerCmd withVolumesFrom(String... volumesFrom)
           
 CreateContainerCmd withWorkingDir(String workingDir)
           
 

Method Detail

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.