@@ -260,19 +260,19 @@ func NewCapList(caps []string) *CapList {
260260// Here, "non-portable" means "dependent of the host we are running on".
261261// Portable information *should* appear in Config.
262262type HostConfig struct {
263- Binds []string // List of volume bindings for this container
264- ContainerIDFile string // File (path) where the containerId is written
265- LxcConf * LxcConfig // Additional lxc configuration
266- Memory int64 // Memory limit (in bytes)
267- MemorySwap int64 // Total memory usage (memory + swap); set `-1` to disable swap
268- CPUShares int64 `json:"CpuShares"` // CPU shares (relative weight vs. other containers)
269- CPUPeriod int64 `json:"CpuPeriod"` // CPU CFS (Completely Fair Scheduler) period
270- CpusetCpus string // CpusetCpus 0-2, 0,1
271- CpusetMems string // CpusetMems 0-2, 0,1
272- CPUQuota int64 `json:"CpuQuota"` // CPU CFS (Completely Fair Scheduler) quota
273- BlkioWeight int64 // Block IO weight (relative weight vs. other containers)
274- OomKillDisable bool // Whether to disable OOM Killer or not
275- MemorySwappiness int64 // Tuning container memory swappiness behaviour
263+ Binds []string // List of volume bindings for this container
264+ ContainerIDFile string // File (path) where the containerId is written
265+ LxcConf * LxcConfig // Additional lxc configuration
266+ Memory int64 // Memory limit (in bytes)
267+ MemorySwap int64 // Total memory usage (memory + swap); set `-1` to disable swap
268+ CPUShares int64 `json:"CpuShares"` // CPU shares (relative weight vs. other containers)
269+ CPUPeriod int64 `json:"CpuPeriod"` // CPU CFS (Completely Fair Scheduler) period
270+ CpusetCpus string // CpusetCpus 0-2, 0,1
271+ CpusetMems string // CpusetMems 0-2, 0,1
272+ CPUQuota int64 `json:"CpuQuota"` // CPU CFS (Completely Fair Scheduler) quota
273+ BlkioWeight int64 // Block IO weight (relative weight vs. other containers)
274+ OomKillDisable bool // Whether to disable OOM Killer or not
275+ MemorySwappiness * int64
276276 Privileged bool // Is the container in privileged mode
277277 PortBindings nat.PortMap // Port mapping between the exposed port (container) and the host
278278 Links []string // List of links (in the name:alias form)
0 commit comments