@@ -129,22 +129,6 @@ func RunCommand() cli.Command { |
129 | 129 | Name: "group-add", |
130 | 130 | Usage: "Add additional groups to join", |
131 | 131 | }, |
132 | | - cli.StringSliceFlag{ |
133 | | - Name: "health-cmd", |
134 | | - Usage: "Command to run to check health", |
135 | | - }, |
136 | | - cli.Int64Flag{ |
137 | | - Name: "health-interval", |
138 | | - Usage: "Time between running the check (ms|s|m|h) (default 0s)", |
139 | | - }, |
140 | | - cli.Int64Flag{ |
141 | | - Name: "health-retries", |
142 | | - Usage: "Consecutive failures needed to report unhealthy", |
143 | | - }, |
144 | | - cli.Int64Flag{ |
145 | | - Name: "health-timeout", |
146 | | - Usage: "Maximum time to allow one check to run (ms|s|m|h) (default 0s)", |
147 | | - }, |
148 | 132 | cli.StringFlag{ |
149 | 133 | Name: "hostname", |
150 | 134 | Usage: "Container host name", |
@@ -324,27 +308,23 @@ func serviceRun(ctx *cli.Context) error { |
324 | 308 | CapAdd: ctx.StringSlice("cap-add"), |
325 | 309 | CapDrop: ctx.StringSlice("cap-drop"), |
326 | 310 | //CpuSet: ctx.String(""), |
327 | | - CgroupParent: ctx.String("cgroup-parent"), |
328 | | - CpuSetMems: ctx.String("cpuset-mems"), |
329 | | - CpuPeriod: ctx.Int64("cpu-period"), |
330 | | - CpuQuota: ctx.Int64("cpu-quota"), |
331 | | - CpuShares: ctx.Int64("cpu-shares"), |
332 | | - Devices: ctx.StringSlice("device"), |
333 | | - Dns: ctx.StringSlice("dns"), |
334 | | - DnsOpt: ctx.StringSlice("dns-opt"), |
335 | | - DnsSearch: ctx.StringSlice("dns-search"), |
336 | | - EntryPoint: ctx.StringSlice("entrypoint"), |
337 | | - Expose: ctx.StringSlice("expose"), |
338 | | - GroupAdd: ctx.StringSlice("group-add"), |
339 | | - HealthCmd: ctx.StringSlice("health-cmd"), |
340 | | - HealthTimeout: ctx.Int64("health-timeout"), |
341 | | - HealthInterval: ctx.Int64("health-interval"), |
342 | | - HealthRetries: ctx.Int64("health-retries"), |
343 | | - Hostname: ctx.String("hostname"), |
344 | | - ImageUuid: "docker:" + ctx.Args()[0], |
345 | | - KernelMemory: ctx.Int64("kernel-memory"), |
346 | | - Labels: map[string]interface{}{}, |
347 | | - Environment: map[string]interface{}{}, |
| 311 | + CgroupParent: ctx.String("cgroup-parent"), |
| 312 | + CpuSetMems: ctx.String("cpuset-mems"), |
| 313 | + CpuPeriod: ctx.Int64("cpu-period"), |
| 314 | + CpuQuota: ctx.Int64("cpu-quota"), |
| 315 | + CpuShares: ctx.Int64("cpu-shares"), |
| 316 | + Devices: ctx.StringSlice("device"), |
| 317 | + Dns: ctx.StringSlice("dns"), |
| 318 | + DnsOpt: ctx.StringSlice("dns-opt"), |
| 319 | + DnsSearch: ctx.StringSlice("dns-search"), |
| 320 | + EntryPoint: ctx.StringSlice("entrypoint"), |
| 321 | + Expose: ctx.StringSlice("expose"), |
| 322 | + GroupAdd: ctx.StringSlice("group-add"), |
| 323 | + Hostname: ctx.String("hostname"), |
| 324 | + ImageUuid: "docker:" + ctx.Args()[0], |
| 325 | + KernelMemory: ctx.Int64("kernel-memory"), |
| 326 | + Labels: map[string]interface{}{}, |
| 327 | + Environment: map[string]interface{}{}, |
348 | 328 | //LogConfig: |
349 | 329 | Memory: ctx.Int64("memory"), |
350 | 330 | MemoryReservation: ctx.Int64("memory-reservation"), |
|