moby/cmd/dockerd
Cory Snider d9bdb61992
cmd/dockerd: use default SIGQUIT behaviour
dockerd handles SIGQUIT by dumping all goroutine stacks to standard
error and exiting. In contrast, the Go runtime's default SIGQUIT
behaviour... dumps all goroutine stacks to standard error and exits.
The default SIGQUIT behaviour is implemented directly in the runtime's
signal handler, and so is both more robust to bugs in the Go runtime and
does not perturb the state of the process to anywhere near same degree
as dumping goroutine stacks from a user goroutine. The only notable
difference from a user's perspective is that the process exits with
status 2 instead of 128+SIGQUIT.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 0867d3173c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-17 13:41:01 +01:00
..
trap cmd/dockerd: use default SIGQUIT behaviour 2023-01-17 13:41:01 +01:00
config.go daemon/config: New(): initialize config with platform-specific defaults 2023-01-10 11:03:04 +01:00
config_unix.go rootless: move ./rootless to ./pkg/rootless 2023-01-10 11:26:15 +01:00
config_unix_test.go daemon/config: New(): initialize config with platform-specific defaults 2023-01-10 11:03:04 +01:00
config_windows.go daemon/config: New(): initialize config with platform-specific defaults 2023-01-10 11:03:04 +01:00
daemon.go rootless: move ./rootless to ./pkg/rootless 2023-01-10 11:26:15 +01:00
daemon_freebsd.go daemon: move check for CPU-realtime daemon options 2022-03-03 19:50:27 +01:00
daemon_linux.go daemon: move check for CPU-realtime daemon options 2022-03-03 19:50:27 +01:00
daemon_test.go cmd/dockerd: loadDaemonCliConfig() safeguard for unparsed flags 2022-06-29 19:55:06 +02:00
daemon_unix.go daemon: improve some errors 2022-06-29 19:54:57 +02:00
daemon_unix_test.go cmd/dockerd: produce error when using discovery options 2022-01-06 18:28:15 +01:00
daemon_windows.go daemon/config: remove and local trustkey utilities 2022-12-03 18:09:16 +01:00
docker.go rootless: move ./rootless to ./pkg/rootless 2023-01-10 11:26:15 +01:00
docker_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
docker_windows.go daemon/config: remove and local trustkey utilities 2022-12-03 18:09:16 +01:00
genwinres_windows.go use go-winres for cross to create Windows resources 2022-04-14 19:52:35 +02:00
metrics.go set ReadHeaderTimeout to address G112: Potential Slowloris Attack (gosec) 2022-09-22 12:27:32 +02:00
options.go use ad-hoc libtrust key 2022-12-03 18:09:16 +01:00
options_test.go cmd/dockerd: un-export config methods, and don't pass flags "twice" 2022-04-27 00:34:17 +02:00
README.md Fix readme doc for dockerd 2016-09-01 14:47:51 +08:00
service_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
service_windows.go Change restart delay for Windows service to 15s 2022-10-13 23:08:42 +02:00

docker.go contains Docker daemon's main function.

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