@@ -45,9 +45,9 @@ type ServiceConfigV1 struct {
45
45
Links yaml.MaporColonSlice `yaml:"links,omitempty"`
46
46
LogDriver string `yaml:"log_driver,omitempty"`
47
47
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"`
51
51
Name string `yaml:"name,omitempty"`
52
52
Net string `yaml:"net,omitempty"`
53
53
OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
@@ -58,7 +58,7 @@ type ServiceConfigV1 struct {
58
58
Privileged bool `yaml:"privileged,omitempty"`
59
59
Restart string `yaml:"restart,omitempty"`
60
60
ReadOnly bool `yaml:"read_only,omitempty"`
61
- ShmSize yaml.StringorInt `yaml:"shm_size,omitempty"`
61
+ ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
62
62
StdinOpen bool `yaml:"stdin_open,omitempty"`
63
63
SecurityOpt []string `yaml:"security_opt,omitempty"`
64
64
StopSignal string `yaml:"stop_signal,omitempty"`
@@ -115,17 +115,17 @@ type ServiceConfig struct {
115
115
Links yaml.MaporColonSlice `yaml:"links,omitempty"`
116
116
Logging Log `yaml:"logging,omitempty"`
117
117
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"`
121
121
NetworkMode string `yaml:"network_mode,omitempty"`
122
122
Networks * yaml.Networks `yaml:"networks,omitempty"`
123
123
OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
124
124
Pid string `yaml:"pid,omitempty"`
125
125
Ports []string `yaml:"ports,omitempty"`
126
126
Privileged bool `yaml:"privileged,omitempty"`
127
127
SecurityOpt []string `yaml:"security_opt,omitempty"`
128
- ShmSize yaml.StringorInt `yaml:"shm_size,omitempty"`
128
+ ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
129
129
StopSignal string `yaml:"stop_signal,omitempty"`
130
130
Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
131
131
VolumeDriver string `yaml:"volume_driver,omitempty"`
0 commit comments