HostConfig
class HostConfig extends Model
HostConfig
Properties
protected Volume> | $binds | ||
protected @var | $links | ||
protected LxcConf> | $lxcConf | ||
protected number | $memory | ||
protected number | $memorySwap | ||
protected number | $cpuShares | ||
protected integer | $kernelMemory | ||
protected integer | $cpuPeriod | ||
protected string | $cpusetCpus | ||
protected string | $cpusetMems | ||
protected integer | $blkioWeight | ||
protected boolean | $oomKillDisable | ||
protected PortMapping> | $portBindings | ||
protected boolean | $publishAllPorts | ||
protected boolean | $privileged | ||
protected IP4Address> | $dns | ||
protected VolumeFrom> | $volumesFrom | ||
protected boolean | $readonlyRootfs | ||
protected Array | $dnsSearch | ||
protected StringList | $dnsOptions | ||
protected mixed | $extraHosts | ||
protected Capabilities | $capAdd | ||
protected Capabilities | $capDrop | ||
protected Group> | $groupAdd | ||
protected RestartPolicy | $restartPolicy | ||
protected string | $networkMode | ||
protected Array | $devices | ||
protected Array | $ulimits | ||
protected Array | $logConfig | ||
protected Array | $securityOpt | ||
protected string | $cgroupParent | ||
protected string | $volumeDriver |
Methods
__construct
getBinds
getLinks
getLxcConf
getMemory
getMemorySwap
getCpuShares
getCpuPeriod
KernelMemory
getCpusetCpus
getCpusetMems
getBlkioWeight
getOomKillDisable
getReadonlyRootfs
getDnsSearch
DnsOptions
getPortBindings
getPublishAllPorts
getPrivileged
DNS
getVolumesFrom
Hinzugefügte Fähigkeiten
Deaktivierte Fähigkeiten
Gruppen unter denen der Container-Prozess läuft
getRestartPolicy
getNetworkMode
getDevices
getUlimits
getLogConfig
getSecurityOpt
getCgroupParent
getVolumeDriver
setBinds
setLinks
setLxcConf
Memorylimit in Bytes
setMemorySwap
setCpuShares
setCpuPeriod
KernelMemory
setCpusetCpus
setCpusetMems
Block IO Gewichtung (relative Gewichtung) Akzeptiert einen Wert zwischen 10 and 1000.
Out Of Memory Kill deaktivieren
setPortBindings
setPublishAllPorts
Alle Ports sollen verbunden werden
setPrivileged
setReadonlyRootfs
DNS
DnsOptions
setDnsSearch
setExtraHosts
getExtraHosts
setVolumesFrom
setGroupAdd
setNetworkMode
setDevices
Ulimits
setSecurityOpt
setVolumeDriver
setCgroupParent
Json-Repräsentation
getInstanceFromArray
Array-Repräsentation
Details
in Model at line 43
protected boolean
convertCollectionToArray(array $config, string $key)
Hilfsfunktion
at line 237
__construct()
__construct
at line 248
Volume>
getBinds()
getBinds
at line 257
@var
getLinks()
getLinks
at line 266
LxcConf>
getLxcConf()
getLxcConf
at line 275
number
getMemory()
getMemory
at line 284
number
getMemorySwap()
getMemorySwap
at line 293
number
getCpuShares()
getCpuShares
at line 302
integer
getCpuPeriod()
getCpuPeriod
at line 311
integer
getKernelMemory()
KernelMemory
at line 320
string
getCpusetCpus()
getCpusetCpus
at line 329
string
getCpusetMems()
getCpusetMems
at line 338
integer
getBlkioWeight()
getBlkioWeight
at line 347
boolean
getOomKillDisable()
getOomKillDisable
at line 356
boolean
getReadonlyRootfs()
getReadonlyRootfs
at line 365
IP4Address>
getDnsSearch()
getDnsSearch
at line 377
StringList
getDnsOptions()
DnsOptions
at line 386
PortMapping>
getPortBindings()
getPortBindings
at line 395
boolean
getPublishAllPorts()
getPublishAllPorts
at line 405
boolean
getPrivileged()
getPrivileged
at line 416
IP4Address>
getDns()
DNS
Liste mit den IP-Adressen des DNS
at line 425
VolumeFrom>
getVolumesFrom()
getVolumesFrom
at line 434
Capabilities
getCapabilitiesAdd()
Hinzugefügte Fähigkeiten
at line 443
Capabilities
getCapabilitiesDrop()
Deaktivierte Fähigkeiten
at line 452
Group>
getGroupAdd()
Gruppen unter denen der Container-Prozess läuft
at line 461
RestartPolicy
getRestartPolicy()
getRestartPolicy
at line 470
string
getNetworkMode()
getNetworkMode
at line 479
Device>
getDevices()
getDevices
at line 488
Ulimit>
getUlimits()
getUlimits
at line 497
LogConfig
getLogConfig()
getLogConfig
at line 506
array
getSecurityOpt()
getSecurityOpt
at line 515
string
getCgroupParent()
getCgroupParent
at line 524
string
getVolumeDriver()
getVolumeDriver
at line 535
HostConfig
setBinds(Collection $binds)
setBinds
at line 548
HostConfig
setLinks(Collection $links)
setLinks
at line 561
HostConfig
setLxcConf(Collection $lxcConf)
setLxcConf
at line 574
HostConfig
setMemory(number $memory)
Memorylimit in Bytes
at line 587
HostConfig
setMemorySwap(number $memorySwap)
setMemorySwap
at line 599
HostConfig
setCpuShares(number $cpuShares)
setCpuShares
at line 611
HostConfig
setCpuPeriod(integer $cpuPeriod)
setCpuPeriod
at line 623
HostConfig
setKernelMemory(integer $kernelMemory)
KernelMemory
at line 635
HostConfig
setCpusetCpus(string $cpusetCpus)
setCpusetCpus
at line 647
HostConfig
setCpusetMems(string $cpusetMems)
setCpusetMems
at line 660
HostConfig
setBlkioWeight(integer $blkioWeight)
Block IO Gewichtung (relative Gewichtung) Akzeptiert einen Wert zwischen 10 and 1000.
at line 674
HostConfig
setOomKillDisable(boolean $oomKillDisable)
Out Of Memory Kill deaktivieren
at line 686
HostConfig
setPortBindings(Collection $portBindings)
setPortBindings
at line 699
HostConfig
setPublishAllPorts(boolean $publishAllPorts)
setPublishAllPorts
at line 709
HostConfig
publishAllPorts()
Alle Ports sollen verbunden werden
at line 721
HostConfig
setPrivileged(boolean $privileged)
setPrivileged
at line 733
HostConfig
setReadonlyRootfs(boolean $readonlyRootfs)
setReadonlyRootfs
at line 745
HostConfig
setDns(Collection $dns)
DNS
at line 760
HostConfig
setDnsOptions(StringList $dnsOptions)
DnsOptions
at line 772
HostConfig
setDnsSearch(Collection $dns)
setDnsSearch
at line 785
HostConfig
setExtraHosts(string $extraHosts)
setExtraHosts
at line 795
HostConfig
getExtraHosts()
getExtraHosts
at line 806
HostConfig
setVolumesFrom(Collection $volumesFrom)
setVolumesFrom
at line 819
HostConfig
setCapabilitiesAdd(Capabilities $capabilities)
Fähigkeiten hinzufügen
at line 831
HostConfig
setCapabilitiesDrop(Capabilities $capabilities)
Fähigkeiten deaktiveren
at line 843
HostConfig
setGroupAdd(Collection $groupAdd)
setGroupAdd
at line 856
HostConfig
setRestartPolicy(RestartPolicy $restartPolicy)
setRestartPolicy
at line 868
HostConfig
setNetworkMode(string $networkMode)
setNetworkMode
at line 880
HostConfig
setDevices(Collection $devices)
setDevices
at line 893
HostConfig
setUlimits(Collection $ulimits)
Ulimits
at line 906
HostConfig
setLogConfig(LogConfig $logConfig)
setLogConfig
at line 918
HostConfig
setSecurityOpt(array $securityOpt)
setSecurityOpt
at line 930
HostConfig
setVolumeDriver(string $volumeDriver)
setVolumeDriver
at line 942
HostConfig
setCgroupParent(string $cgroupParent)
setCgroupParent
at line 955
string
asJson()
Json-Repräsentation
Diese Methode gibt die Konfiguration für die Verwendung mit Container::start() als JSON-Zeichekette zurück.
at line 966
static HostConfig
getInstanceFromArray(Array $array)
getInstanceFromArray
at line 1140
array
toArray()
Array-Repräsentation
Diese Methode gibt die Konfiguration für die Verwendung mit Container::run() als Array zurück.