moby/runconfig
Qiang Huang 6f8ddec1d0 Simplify swappiness check
As suggested in https://github.com/docker/docker/pull/14004/files#r34022527

The concern there is we can't differentiate whether user explicitly
asked for an invalid value of -1 or he did not specify anything.

I don't think this would be a problem, because:
 - like all other default values like zero, we can't differentiate
   user specify it or not, most of which, zeros are also invalid, so
   default is default, we show these default values in help info,
   so users would know if they set value as default, it'll be like
   they set nothing.
 - we can't do this kind of string check in REST api request, so
   it'll make the behave different from docker command and RESTapi.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-07-20 16:10:10 +08:00
..
fixtures Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
compare.go Remove PortSpecs from Config 2015-05-29 22:38:09 +02:00
compare_test.go Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
config.go Move /nat to /pkg/nat 2015-06-30 17:43:17 +01:00
config_test.go Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
exec.go Revert "Add docker exec run a command in privileged mode" 2015-05-26 14:12:16 -07:00
exec_test.go Add minor vet fixes 2015-07-12 19:16:38 +02:00
hostconfig.go Adds support for specifying additional groups. 2015-07-13 14:47:28 -04:00
hostconfig_test.go Add minor vet fixes 2015-07-12 19:16:38 +02:00
hostconfig_unix.go Windows: Refactor network modes 2015-06-29 13:13:55 -07:00
hostconfig_windows.go Windows: Wrong build tag in runconfig 2015-07-08 11:38:28 -07:00
merge.go Add break after key is found in for loop 2015-07-03 20:37:34 +02:00
merge_test.go Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
parse.go Simplify swappiness check 2015-07-20 16:10:10 +08:00
parse_experimental.go Support for --publish-service flag in docker run 2015-06-20 11:03:38 -07:00
parse_stub.go Mark --volume-driver as experimental 2015-05-21 20:34:17 -07:00
parse_test.go Add test coverage to opts and refactor 2015-07-12 10:33:30 +02:00
parse_unix.go Windows: Refactor network modes 2015-06-29 13:13:55 -07:00
parse_windows.go Fix Windows CI fail due to GH13866 and patch up tests 2015-07-09 10:09:45 -07:00