com.github.dockerjava.client.model
Class CreateContainerConfig

java.lang.Object
  extended by com.github.dockerjava.client.model.CreateContainerConfig

public class CreateContainerConfig
extends Object

Author:
Konstantin Pelykh ([email protected]) "Hostname":"", "User":"", "Memory":0, "MemorySwap":0, "AttachStdin":false, "AttachStdout":true, "AttachStderr":true, "PortSpecs":null, "Tty":false, "OpenStdin":false, "StdinOnce":false, "Env":null, "Cmd":[ "date" ], "Dns":null, "Image":"base", "Volumes":{ "/tmp": {} }, "VolumesFrom":"", "WorkingDir":"", "DisableNetwork": false, "ExposedPorts":{ "22/tcp": {} }

Constructor Summary
CreateContainerConfig()
           
 
Method Summary
 String[] getCmd()
           
 String[] getDns()
           
 String[] getEnv()
           
 ExposedPort[] getExposedPorts()
           
 String getHostName()
           
 String getImage()
           
 long getMemoryLimit()
           
 long getMemorySwap()
           
 String[] getPortSpecs()
           
 String getUser()
           
 Volume[] getVolumes()
           
 String[] getVolumesFrom()
           
 String getWorkingDir()
           
 boolean isAttachStderr()
           
 boolean isAttachStdin()
           
 boolean isAttachStdout()
           
 boolean isDisableNetwork()
           
 boolean isStdInOnce()
           
 boolean isStdinOpen()
           
 boolean isTty()
           
 String toString()
           
 CreateContainerConfig withAttachStderr(boolean attachStderr)
           
 CreateContainerConfig withAttachStdin(boolean attachStdin)
           
 CreateContainerConfig withAttachStdout(boolean attachStdout)
           
 CreateContainerConfig withCmd(String[] cmd)
           
 CreateContainerConfig withDisableNetwork(boolean disableNetwork)
           
 CreateContainerConfig withDns(String[] dns)
           
 CreateContainerConfig withEnv(String[] env)
           
 CreateContainerConfig withExposedPorts(ExposedPort[] exposedPorts)
           
 CreateContainerConfig withHostName(String hostName)
           
 CreateContainerConfig withImage(String image)
           
 CreateContainerConfig withMemoryLimit(long memoryLimit)
           
 CreateContainerConfig withMemorySwap(long memorySwap)
           
 CreateContainerConfig withPortSpecs(String[] portSpecs)
           
 CreateContainerConfig withStdInOnce(boolean stdInOnce)
           
 CreateContainerConfig withStdinOpen(boolean stdinOpen)
           
 CreateContainerConfig withTty(boolean tty)
           
 CreateContainerConfig withUser(String user)
           
 CreateContainerConfig withVolumes(Volume[] volumes)
           
 CreateContainerConfig withVolumesFrom(String[] volumesFrom)
           
 CreateContainerConfig withWorkingDir(String workingDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateContainerConfig

public CreateContainerConfig()
Method Detail

withExposedPorts

public CreateContainerConfig withExposedPorts(ExposedPort[] exposedPorts)

getExposedPorts

public ExposedPort[] getExposedPorts()

isDisableNetwork

public boolean isDisableNetwork()

getWorkingDir

public String getWorkingDir()

withWorkingDir

public CreateContainerConfig withWorkingDir(String workingDir)

getHostName

public String getHostName()

withDisableNetwork

public CreateContainerConfig withDisableNetwork(boolean disableNetwork)

withHostName

public CreateContainerConfig withHostName(String hostName)

getPortSpecs

public String[] getPortSpecs()

withPortSpecs

public CreateContainerConfig withPortSpecs(String[] portSpecs)

getUser

public String getUser()

withUser

public CreateContainerConfig withUser(String user)

isTty

public boolean isTty()

withTty

public CreateContainerConfig withTty(boolean tty)

isStdinOpen

public boolean isStdinOpen()

withStdinOpen

public CreateContainerConfig withStdinOpen(boolean stdinOpen)

isStdInOnce

public boolean isStdInOnce()

withStdInOnce

public CreateContainerConfig withStdInOnce(boolean stdInOnce)

getMemoryLimit

public long getMemoryLimit()

withMemoryLimit

public CreateContainerConfig withMemoryLimit(long memoryLimit)

getMemorySwap

public long getMemorySwap()

withMemorySwap

public CreateContainerConfig withMemorySwap(long memorySwap)

isAttachStdin

public boolean isAttachStdin()

withAttachStdin

public CreateContainerConfig withAttachStdin(boolean attachStdin)

isAttachStdout

public boolean isAttachStdout()

withAttachStdout

public CreateContainerConfig withAttachStdout(boolean attachStdout)

isAttachStderr

public boolean isAttachStderr()

withAttachStderr

public CreateContainerConfig withAttachStderr(boolean attachStderr)

getEnv

public String[] getEnv()

withEnv

public CreateContainerConfig withEnv(String[] env)

getCmd

public String[] getCmd()

withCmd

public CreateContainerConfig withCmd(String[] cmd)

getDns

public String[] getDns()

withDns

public CreateContainerConfig withDns(String[] dns)

getImage

public String getImage()

withImage

public CreateContainerConfig withImage(String image)

getVolumes

public Volume[] getVolumes()

withVolumes

public CreateContainerConfig withVolumes(Volume[] volumes)

getVolumesFrom

public String[] getVolumesFrom()

withVolumesFrom

public CreateContainerConfig withVolumesFrom(String[] volumesFrom)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.