moby/docker
Lei Jitang b9366c9609 Fix configuration reloading
There are five options 'debug' 'labels' 'cluster-store' 'cluster-store-opts'
and 'cluster-advertise' that can be reconfigured, configure any of these
options should not affect other options which may have configured in flags.
But this is not true, for example, I start a daemon with -D to enable the
debugging, and after a while, I want reconfigure the 'label', so I add a file
'/etc/docker/daemon.json' with content '"labels":["test"]' and send SIGHUP to daemon
to reconfigure the daemon, it work, but the debugging of the daemon is also diabled.
I don't think this is a expeted behaviour.
This patch also have some minor refactor of reconfiguration of cluster-advertiser.
Enable user to reconfigure cluster-advertiser without cluster-store in config file
since cluster-store could also be already set in flag, and we only want to reconfigure
the cluster-advertiser.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-02-24 21:12:14 -05:00
..
listeners Move listeners and port allocation outside the server. 2016-02-11 14:42:49 -05:00
client.go handle debug mode for clients 2016-02-01 14:36:40 -05:00
client_test.go Add regression tests for client debug flag. 2016-02-02 16:57:36 -05:00
common.go Verify that the configuration keys in the file are valid. 2016-01-21 16:56:12 -05:00
daemon.go Fix configuration reloading 2016-02-24 21:12:14 -05:00
daemon_freebsd.go Fix "./docker" package name on freebsd 2015-11-17 09:38:19 -08:00
daemon_linux.go Remove LXC support. 2015-11-05 17:09:57 -05:00
daemon_none.go Remove deprecated cli flags 2015-11-15 10:40:01 +01:00
daemon_test.go Avoid setting default truthy values from flags that are not set. 2016-02-19 18:39:10 -05:00
daemon_unix.go Avoid setting default truthy values from flags that are not set. 2016-02-19 18:39:10 -05:00
daemon_unix_test.go Allow network configuration via daemon config file. 2016-01-25 18:54:56 -05:00
daemon_windows.go Avoid setting default truthy values from flags that are not set. 2016-02-19 18:39:10 -05:00
docker.go replace the os.Stdout with stdout to adapt platform 2015-12-30 18:24:02 +08:00
docker_windows.go Windows: Build docker.exe manifested and with icon 2015-06-04 11:49:10 -07:00
flags.go Use consistent command description 2015-10-08 08:46:21 -04:00
flags_test.go Add test to check if subcommands are sorted 2015-08-07 01:34:21 -07:00
README.md Add README.md file for the docker directory 2014-05-20 09:04:46 +00:00

docker.go contains Docker's main function.

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