com.github.dockerjava.client.model
Class CreateContainerConfig
java.lang.Object
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": {}
}
CreateContainerConfig
public CreateContainerConfig()
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.