@@ -45,9 +45,9 @@ type ServiceConfigV1 struct {
4545 Links yaml.MaporColonSlice `yaml:"links,omitempty"`
4646 LogDriver string `yaml:"log_driver,omitempty"`
4747 MacAddress string `yaml:"mac_address,omitempty"`
48- MemLimit yaml.StringorInt `yaml:"mem_limit,omitempty"`
49- MemSwapLimit yaml.StringorInt `yaml:"memswap_limit,omitempty"`
50- MemSwappiness yaml.StringorInt `yaml:"mem_swappiness,omitempty"`
48+ MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
49+ MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
50+ MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
5151 Name string `yaml:"name,omitempty"`
5252 Net string `yaml:"net,omitempty"`
5353 OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
@@ -58,7 +58,7 @@ type ServiceConfigV1 struct {
5858 Privileged bool `yaml:"privileged,omitempty"`
5959 Restart string `yaml:"restart,omitempty"`
6060 ReadOnly bool `yaml:"read_only,omitempty"`
61- ShmSize yaml.StringorInt `yaml:"shm_size,omitempty"`
61+ ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
6262 StdinOpen bool `yaml:"stdin_open,omitempty"`
6363 SecurityOpt []string `yaml:"security_opt,omitempty"`
6464 StopSignal string `yaml:"stop_signal,omitempty"`
@@ -115,17 +115,17 @@ type ServiceConfig struct {
115115 Links yaml.MaporColonSlice `yaml:"links,omitempty"`
116116 Logging Log `yaml:"logging,omitempty"`
117117 MacAddress string `yaml:"mac_address,omitempty"`
118- MemLimit yaml.StringorInt `yaml:"mem_limit,omitempty"`
119- MemSwapLimit yaml.StringorInt `yaml:"memswap_limit,omitempty"`
120- MemSwappiness yaml.StringorInt `yaml:"mem_swappiness,omitempty"`
118+ MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
119+ MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
120+ MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
121121 NetworkMode string `yaml:"network_mode,omitempty"`
122122 Networks * yaml.Networks `yaml:"networks,omitempty"`
123123 OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
124124 Pid string `yaml:"pid,omitempty"`
125125 Ports []string `yaml:"ports,omitempty"`
126126 Privileged bool `yaml:"privileged,omitempty"`
127127 SecurityOpt []string `yaml:"security_opt,omitempty"`
128- ShmSize yaml.StringorInt `yaml:"shm_size,omitempty"`
128+ ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
129129 StopSignal string `yaml:"stop_signal,omitempty"`
130130 Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
131131 VolumeDriver string `yaml:"volume_driver,omitempty"`
0 commit comments