@@ -23,9 +23,9 @@ type ServiceConfigV1 struct {
2323 CapAdd []string `yaml:"cap_add,omitempty"`
2424 CapDrop []string `yaml:"cap_drop,omitempty"`
2525 CgroupParent string `yaml:"cgroup_parent,omitempty"`
26- CPUQuota int64 `yaml:"cpu_quota,omitempty"`
26+ CPUQuota yaml. StringorInt `yaml:"cpu_quota,omitempty"`
2727 CPUSet string `yaml:"cpuset,omitempty"`
28- CPUShares int64 `yaml:"cpu_shares,omitempty"`
28+ CPUShares yaml. StringorInt `yaml:"cpu_shares,omitempty"`
2929 Command yaml.Command `yaml:"command,flow,omitempty"`
3030 ContainerName string `yaml:"container_name,omitempty"`
3131 Devices []string `yaml:"devices,omitempty"`
@@ -42,8 +42,8 @@ type ServiceConfigV1 struct {
4242 Links yaml.MaporColonSlice `yaml:"links,omitempty"`
4343 LogDriver string `yaml:"log_driver,omitempty"`
4444 MacAddress string `yaml:"mac_address,omitempty"`
45- MemLimit int64 `yaml:"mem_limit,omitempty"`
46- MemSwapLimit int64 `yaml:"memswap_limit,omitempty"`
45+ MemLimit yaml. StringorInt `yaml:"mem_limit,omitempty"`
46+ MemSwapLimit yaml. StringorInt `yaml:"memswap_limit,omitempty"`
4747 Name string `yaml:"name,omitempty"`
4848 Net string `yaml:"net,omitempty"`
4949 Pid string `yaml:"pid,omitempty"`
@@ -53,7 +53,7 @@ type ServiceConfigV1 struct {
5353 Privileged bool `yaml:"privileged,omitempty"`
5454 Restart string `yaml:"restart,omitempty"`
5555 ReadOnly bool `yaml:"read_only,omitempty"`
56- ShmSize int64 `yaml:"shm_size,omitempty"`
56+ ShmSize yaml. StringorInt `yaml:"shm_size,omitempty"`
5757 StdinOpen bool `yaml:"stdin_open,omitempty"`
5858 SecurityOpt []string `yaml:"security_opt,omitempty"`
5959 Tty bool `yaml:"tty,omitempty"`
@@ -81,8 +81,8 @@ type ServiceConfig struct {
8181 CapAdd []string `yaml:"cap_add,omitempty"`
8282 CapDrop []string `yaml:"cap_drop,omitempty"`
8383 CPUSet string `yaml:"cpuset,omitempty"`
84- CPUShares int64 `yaml:"cpu_shares,omitempty"`
85- CPUQuota int64 `yaml:"cpu_quota,omitempty"`
84+ CPUShares yaml. StringorInt `yaml:"cpu_shares,omitempty"`
85+ CPUQuota yaml. StringorInt `yaml:"cpu_quota,omitempty"`
8686 Command yaml.Command `yaml:"command,flow,omitempty"`
8787 CgroupParent string `yaml:"cgroup_parent,omitempty"`
8888 ContainerName string `yaml:"container_name,omitempty"`
@@ -105,15 +105,15 @@ type ServiceConfig struct {
105105 Links yaml.MaporColonSlice `yaml:"links,omitempty"`
106106 Logging Log `yaml:"logging,omitempty"`
107107 MacAddress string `yaml:"mac_address,omitempty"`
108- MemLimit int64 `yaml:"mem_limit,omitempty"`
109- MemSwapLimit int64 `yaml:"memswap_limit,omitempty"`
108+ MemLimit yaml. StringorInt `yaml:"mem_limit,omitempty"`
109+ MemSwapLimit yaml. StringorInt `yaml:"memswap_limit,omitempty"`
110110 NetworkMode string `yaml:"network_mode,omitempty"`
111111 Networks * yaml.Networks `yaml:"networks,omitempty"`
112112 Pid string `yaml:"pid,omitempty"`
113113 Ports []string `yaml:"ports,omitempty"`
114114 Privileged bool `yaml:"privileged,omitempty"`
115115 SecurityOpt []string `yaml:"security_opt,omitempty"`
116- ShmSize int64 `yaml:"shm_size,omitempty"`
116+ ShmSize yaml. StringorInt `yaml:"shm_size,omitempty"`
117117 StopSignal string `yaml:"stop_signal,omitempty"`
118118 VolumeDriver string `yaml:"volume_driver,omitempty"`
119119 Volumes []string `yaml:"volumes,omitempty"`
0 commit comments