class HostConfig extends Model

HostConfig

Properties

protected Volume> $binds
$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

boolean
convertCollectionToArray(array $config, string $key)

Hilfsfunktion

from Model
__construct()

__construct

Volume>
getBinds()

getBinds

@var
getLinks()

getLinks

LxcConf>
getLxcConf()

getLxcConf

number
getMemory()

getMemory

number
getMemorySwap()

getMemorySwap

number
getCpuShares()

getCpuShares

integer
getCpuPeriod()

getCpuPeriod

integer
getKernelMemory()

KernelMemory

string
getCpusetCpus()

getCpusetCpus

string
getCpusetMems()

getCpusetMems

integer
getBlkioWeight()

getBlkioWeight

boolean
getOomKillDisable()

getOomKillDisable

boolean
getReadonlyRootfs()

getReadonlyRootfs

IP4Address>
getDnsSearch()

getDnsSearch

StringList
getDnsOptions()

DnsOptions

PortMapping>
getPortBindings()

getPortBindings

boolean
getPublishAllPorts()

getPublishAllPorts

boolean
getPrivileged()

getPrivileged

IP4Address>
getDns()

DNS

VolumeFrom>
getVolumesFrom()

getVolumesFrom

getCapabilitiesAdd()

Hinzugefügte Fähigkeiten

getCapabilitiesDrop()

Deaktivierte Fähigkeiten

Group>
getGroupAdd()

Gruppen unter denen der Container-Prozess läuft

getRestartPolicy()

getRestartPolicy

string
getNetworkMode()

getNetworkMode

Device>
getDevices()

getDevices

Ulimit>
getUlimits()

getUlimits

getLogConfig()

getLogConfig

array
getSecurityOpt()

getSecurityOpt

string
getCgroupParent()

getCgroupParent

string
getVolumeDriver()

getVolumeDriver

setBinds(Collection $binds)

setBinds

setLinks(Collection $links)

setLinks

setLxcConf(Collection $lxcConf)

setLxcConf

setMemory(number $memory)

Memorylimit in Bytes

setMemorySwap(number $memorySwap)

setMemorySwap

setCpuShares(number $cpuShares)

setCpuShares

setCpuPeriod(integer $cpuPeriod)

setCpuPeriod

setKernelMemory(integer $kernelMemory)

KernelMemory

setCpusetCpus(string $cpusetCpus)

setCpusetCpus

setCpusetMems(string $cpusetMems)

setCpusetMems

setBlkioWeight(integer $blkioWeight)

Block IO Gewichtung (relative Gewichtung) Akzeptiert einen Wert zwischen 10 and 1000.

setOomKillDisable(boolean $oomKillDisable)

Out Of Memory Kill deaktivieren

setPortBindings(Collection $portBindings)

setPortBindings

setPublishAllPorts(boolean $publishAllPorts)

setPublishAllPorts

publishAllPorts()

Alle Ports sollen verbunden werden

setPrivileged(boolean $privileged)

setPrivileged

setReadonlyRootfs(boolean $readonlyRootfs)

setReadonlyRootfs

setDns(Collection $dns)

DNS

setDnsOptions(StringList $dnsOptions)

DnsOptions

setDnsSearch(Collection $dns)

setDnsSearch

setExtraHosts(string $extraHosts)

setExtraHosts

getExtraHosts()

getExtraHosts

setVolumesFrom(Collection $volumesFrom)

setVolumesFrom

setCapabilitiesAdd(Capabilities $capabilities)

Fähigkeiten hinzufügen

setCapabilitiesDrop(Capabilities $capabilities)

Fähigkeiten deaktiveren

setGroupAdd(Collection $groupAdd)

setGroupAdd

setRestartPolicy(RestartPolicy $restartPolicy)

setRestartPolicy

setNetworkMode(string $networkMode)

setNetworkMode

setDevices(Collection $devices)

setDevices

setUlimits(Collection $ulimits)

Ulimits

setLogConfig(LogConfig $logConfig)

setLogConfig

setSecurityOpt(array $securityOpt)

setSecurityOpt

setVolumeDriver(string $volumeDriver)

setVolumeDriver

setCgroupParent(string $cgroupParent)

setCgroupParent

string
asJson()

Json-Repräsentation

static HostConfig
getInstanceFromArray(Array $array)

getInstanceFromArray

array
toArray()

Array-Repräsentation

Details

in Model at line 43
protected boolean convertCollectionToArray(array $config, string $key)

Hilfsfunktion

Parameters

array $config Konfiguration
string $key Schlüssel

Return Value

boolean

at line 237
__construct()

__construct

at line 248
Volume> getBinds()

getBinds

Return Value

Volume>

getLinks

Return Value

@var \Alvine\Types\Collection<\Alvine\Infrastructure\Docker\Container\Link>

at line 266
LxcConf> getLxcConf()

getLxcConf

Return Value

LxcConf>

at line 275
number getMemory()

getMemory

Return Value

number

at line 284
number getMemorySwap()

getMemorySwap

Return Value

number

at line 293
number getCpuShares()

getCpuShares

Return Value

number

at line 302
integer getCpuPeriod()

getCpuPeriod

Return Value

integer

at line 311
integer getKernelMemory()

KernelMemory

Return Value

integer

at line 320
string getCpusetCpus()

getCpusetCpus

Return Value

string

at line 329
string getCpusetMems()

getCpusetMems

Return Value

string

at line 338
integer getBlkioWeight()

getBlkioWeight

Return Value

integer

at line 347
boolean getOomKillDisable()

getOomKillDisable

Return Value

boolean

at line 356
boolean getReadonlyRootfs()

getReadonlyRootfs

Return Value

boolean

at line 365
IP4Address> getDnsSearch()

getDnsSearch

Return Value

IP4Address> DNS

at line 377
StringList getDnsOptions()

DnsOptions

Return Value

StringList

at line 386
PortMapping> getPortBindings()

getPortBindings

Return Value

PortMapping>

at line 395
boolean getPublishAllPorts()

getPublishAllPorts

Return Value

boolean

at line 405
boolean getPrivileged()

getPrivileged

Return Value

boolean

at line 416
IP4Address> getDns()

DNS

Liste mit den IP-Adressen des DNS

Return Value

IP4Address> DNS

at line 425
VolumeFrom> getVolumesFrom()

getVolumesFrom

Return Value

VolumeFrom>

at line 434
Capabilities getCapabilitiesAdd()

Hinzugefügte Fähigkeiten

Return Value

Capabilities

at line 443
Capabilities getCapabilitiesDrop()

Deaktivierte Fähigkeiten

Return Value

Capabilities

at line 452
Group> getGroupAdd()

Gruppen unter denen der Container-Prozess läuft

Return Value

Group>

at line 461
RestartPolicy getRestartPolicy()

getRestartPolicy

Return Value

RestartPolicy

at line 470
string getNetworkMode()

getNetworkMode

Return Value

string

at line 479
Device> getDevices()

getDevices

Return Value

Device>

at line 488
Ulimit> getUlimits()

getUlimits

Return Value

Ulimit>

at line 497
LogConfig getLogConfig()

getLogConfig

Return Value

LogConfig

at line 506
array getSecurityOpt()

getSecurityOpt

Return Value

array

at line 515
string getCgroupParent()

getCgroupParent

Return Value

string

at line 524
string getVolumeDriver()

getVolumeDriver

Return Value

string

at line 535
HostConfig setBinds(Collection $binds)

setBinds

Parameters

Collection $binds

Return Value

HostConfig

setLinks

Parameters

Collection $links

Return Value

HostConfig

at line 561
HostConfig setLxcConf(Collection $lxcConf)

setLxcConf

Parameters

Collection $lxcConf

Return Value

HostConfig

at line 574
HostConfig setMemory(number $memory)

Memorylimit in Bytes

Parameters

number $memory

Return Value

HostConfig

at line 587
HostConfig setMemorySwap(number $memorySwap)

setMemorySwap

Parameters

number $memorySwap

Return Value

HostConfig

at line 599
HostConfig setCpuShares(number $cpuShares)

setCpuShares

Parameters

number $cpuShares

Return Value

HostConfig

at line 611
HostConfig setCpuPeriod(integer $cpuPeriod)

setCpuPeriod

Parameters

integer $cpuPeriod

Return Value

HostConfig

at line 623
HostConfig setKernelMemory(integer $kernelMemory)

KernelMemory

Parameters

integer $kernelMemory

Return Value

HostConfig

at line 635
HostConfig setCpusetCpus(string $cpusetCpus)

setCpusetCpus

Parameters

string $cpusetCpus

Return Value

HostConfig

at line 647
HostConfig setCpusetMems(string $cpusetMems)

setCpusetMems

Parameters

string $cpusetMems

Return Value

HostConfig

at line 660
HostConfig setBlkioWeight(integer $blkioWeight)

Block IO Gewichtung (relative Gewichtung) Akzeptiert einen Wert zwischen 10 and 1000.

Parameters

integer $blkioWeight

Return Value

HostConfig

at line 674
HostConfig setOomKillDisable(boolean $oomKillDisable)

Out Of Memory Kill deaktivieren

Parameters

boolean $oomKillDisable

Return Value

HostConfig

at line 686
HostConfig setPortBindings(Collection $portBindings)

setPortBindings

Parameters

Collection $portBindings

Return Value

HostConfig

at line 699
HostConfig setPublishAllPorts(boolean $publishAllPorts)

setPublishAllPorts

Parameters

boolean $publishAllPorts

Return Value

HostConfig

at line 709
HostConfig publishAllPorts()

Alle Ports sollen verbunden werden

Return Value

HostConfig

at line 721
HostConfig setPrivileged(boolean $privileged)

setPrivileged

Parameters

boolean $privileged

Return Value

HostConfig

at line 733
HostConfig setReadonlyRootfs(boolean $readonlyRootfs)

setReadonlyRootfs

Parameters

boolean $readonlyRootfs

Return Value

HostConfig

at line 745
HostConfig setDns(Collection $dns)

DNS

Parameters

Collection $dns DNS

Return Value

HostConfig

at line 760
HostConfig setDnsOptions(StringList $dnsOptions)

DnsOptions

Parameters

StringList $dnsOptions DNS-Optionen

Return Value

HostConfig

at line 772
HostConfig setDnsSearch(Collection $dns)

setDnsSearch

Parameters

Collection $dns DNS

Return Value

HostConfig

at line 785
HostConfig setExtraHosts(string $extraHosts)

setExtraHosts

Parameters

string $extraHosts

Return Value

HostConfig

at line 795
HostConfig getExtraHosts()

getExtraHosts

Return Value

HostConfig

at line 806
HostConfig setVolumesFrom(Collection $volumesFrom)

setVolumesFrom

Parameters

Collection $volumesFrom

Return Value

HostConfig

at line 819
HostConfig setCapabilitiesAdd(Capabilities $capabilities)

Fähigkeiten hinzufügen

Parameters

Capabilities $capabilities

Return Value

HostConfig

at line 831
HostConfig setCapabilitiesDrop(Capabilities $capabilities)

Fähigkeiten deaktiveren

Parameters

Capabilities $capabilities

Return Value

HostConfig

at line 843
HostConfig setGroupAdd(Collection $groupAdd)

setGroupAdd

Parameters

Collection $groupAdd

Return Value

HostConfig

at line 856
HostConfig setRestartPolicy(RestartPolicy $restartPolicy)

setRestartPolicy

Parameters

RestartPolicy $restartPolicy

Return Value

HostConfig

at line 868
HostConfig setNetworkMode(string $networkMode)

setNetworkMode

Parameters

string $networkMode

Return Value

HostConfig

at line 880
HostConfig setDevices(Collection $devices)

setDevices

Parameters

Collection $devices

Return Value

HostConfig

at line 893
HostConfig setUlimits(Collection $ulimits)

Ulimits

Parameters

Collection $ulimits

Return Value

HostConfig

at line 906
HostConfig setLogConfig(LogConfig $logConfig)

setLogConfig

Parameters

LogConfig $logConfig

Return Value

HostConfig

at line 918
HostConfig setSecurityOpt(array $securityOpt)

setSecurityOpt

Parameters

array $securityOpt

Return Value

HostConfig

at line 930
HostConfig setVolumeDriver(string $volumeDriver)

setVolumeDriver

Parameters

string $volumeDriver

Return Value

HostConfig

at line 942
HostConfig setCgroupParent(string $cgroupParent)

setCgroupParent

Parameters

string $cgroupParent

Return Value

HostConfig

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.

Return Value

string Json-Formatierter String

at line 966
static HostConfig getInstanceFromArray(Array $array)

getInstanceFromArray

Parameters

Array $array

Return Value

HostConfig

at line 1140
array toArray()

Array-Repräsentation

Diese Methode gibt die Konfiguration für die Verwendung mit Container::run() als Array zurück.

Return Value

array Array