@@ -190,6 +190,7 @@ type LogConfig struct {
190190type Resources struct {
191191 // Applicable to all platforms
192192 CPUShares int64 `json:"CpuShares"` // CPU shares (relative weight vs. other containers)
193+ Memory int64 // Memory limit (in bytes)
193194
194195 // Applicable to UNIX platforms
195196 CgroupParent string // Parent cgroup.
@@ -206,13 +207,17 @@ type Resources struct {
206207 Devices []DeviceMapping // List of devices to map inside the container
207208 DiskQuota int64 // Disk limit (in bytes)
208209 KernelMemory int64 // Kernel memory limit (in bytes)
209- Memory int64 // Memory limit (in bytes)
210210 MemoryReservation int64 // Memory soft limit (in bytes)
211211 MemorySwap int64 // Total memory usage (memory + swap); set `-1` to enable unlimited swap
212212 MemorySwappiness * int64 // Tuning container memory swappiness behaviour
213213 OomKillDisable * bool // Whether to disable OOM Killer or not
214214 PidsLimit int64 // Setting pids limit for a container
215215 Ulimits []* units.Ulimit // List of ulimits to be set in the container
216+
217+ // Applicable to Windows
218+ BlkioIOps uint64 // Maximum IOps for the container system drive
219+ BlkioBps uint64 // Maximum Bytes per second for the container system drive
220+ SandboxSize uint64 // System drive will be expanded to at least this size (in bytes)
216221}
217222
218223// UpdateConfig holds the mutable attributes of a Container.
@@ -256,7 +261,9 @@ type HostConfig struct {
256261 StorageOpt []string // Storage driver options per container.
257262 Tmpfs map [string ]string `json:",omitempty"` // List of tmpfs (mounts) used for the container
258263 UTSMode UTSMode // UTS namespace to use for the container
264+ UsernsMode UsernsMode // The user namespace to use for the container
259265 ShmSize int64 // Total shm memory usage
266+ Sysctls map [string ]string `json:",omitempty"` // List of Namespaced sysctls used for the container
260267
261268 // Applicable to Windows
262269 ConsoleSize [2 ]int // Initial console size
0 commit comments