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
Sebastiaan van Stijn 1edf943dc7
Configure log-format earlier, and small refactor
Some messages are logged before the logrus format was set,
therefore resulting in inconsistent log-message formatting
during startup;

Before this patch;

```
dockerd --experimental
WARN[0000] Running experimental build
INFO[2018-11-24T11:24:05.615249610Z] libcontainerd: started new containerd process  pid=132
INFO[2018-11-24T11:24:05.615348322Z] parsed scheme: "unix"                         module=grpc
...
```

With this patch applied;

```
dockerd --experimental
WARN[2018-11-24T13:41:51.199057259Z] Running experimental build
INFO[2018-11-24T13:41:51.200412645Z] libcontainerd: started new containerd process  pid=293
INFO[2018-11-24T13:41:51.200523051Z] parsed scheme: "unix"                         module=grpc
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-12-19 18:53:18 +01:00
..
hack
config.go add optional fields in daemon.json to enable buildkit 2018-08-19 14:58:23 -07:00
config_common_unix.go
config_unix.go Various code-cleanup 2018-05-23 17:50:54 +02:00
config_unix_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_windows.go
daemon.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
daemon_freebsd.go
daemon_linux.go Use go-systemd const instead of magic string in Linux version of dockerd 2018-05-23 19:06:34 +02:00
daemon_test.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
daemon_unix.go create newBuildKit function separately in daemon_unix.go and daemon_windows.go for cross platform build 2018-09-11 11:22:48 -07:00
daemon_unix_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
daemon_windows.go create newBuildKit function separately in daemon_unix.go and daemon_windows.go for cross platform build 2018-09-11 11:22:48 -07:00
docker.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
docker_unix.go
docker_windows.go
metrics.go Various code-cleanup 2018-05-23 17:50:54 +02:00
options.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
options_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
README.md
service_unsupported.go
service_windows.go Properly type handles to prevent overflows 2018-10-10 16:46:37 -07:00

docker.go contains Docker daemon's main function.

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