1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cmd/dockerd
Michael Crosby a894aec8d8 Add --oom-score-adjust to daemon
This adds an `--oom-score-adjust` flag to the daemon so that the value
provided can be set for the docker daemon's process.  The default value
for the flag is -500.  This will allow the docker daemon to have a
less chance of being killed before containers do.  The default value for
processes is 0 with a min/max of -1000/1000.

-500 is a good middle ground because it is less than the default for
most processes and still not -1000 which basically means never kill this
process in an OOM condition on the host machine.  The only processes on
my machine that have a score less than -500 are dbus at -900 and sshd
and xfce( my window manager ) at -1000.  I don't think docker should be
set lower, by default, than dbus or sshd so that is why I chose -500.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-07-12 15:53:15 -07:00
..
hack fix flaky test TestImportFileWithMessage 2016-05-27 23:19:29 +08:00
daemon.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
daemon_freebsd.go Make dockerd debuggable 2016-04-26 09:35:22 -07:00
daemon_linux.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
daemon_no_plugin_support.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
daemon_plugin_support.go Implement plugin restore after daemon restart 2016-06-15 13:39:33 -04:00
daemon_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
daemon_test.go Cleanup the structure of the cli package. 2016-04-27 14:25:47 -04:00
daemon_unix.go Add --oom-score-adjust to daemon 2016-07-12 15:53:15 -07:00
daemon_unix_test.go Cleanup the structure of the cli package. 2016-04-27 14:25:47 -04:00
daemon_windows.go Ignore invalid host header between go1.6 and old docker clients 2016-05-19 21:07:45 +02:00
docker.go Windows: Support running dockerd as a service 2016-04-26 14:04:47 -07:00
docker_windows.go Windows: work around Go 1.6.2/Nano Server TP5 issue 2016-05-25 11:59:28 +02:00
README.md Make dockerd debuggable 2016-04-26 09:35:22 -07:00
routes.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
routes_experimental.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
service_unsupported.go Windows: Support running dockerd as a service 2016-04-26 14:04:47 -07:00
service_windows.go Fix typo in error message 2016-06-12 23:22:26 +02:00

docker.go contains Docker's main function.

This file provides first line CLI argument parsing and environment variable setting.