moby--moby/cmd/dockerd
Sebastiaan van Stijn 10df1f55f1
daemon: don't listen on the same address multiple times
Before this change:

    dockerd -H unix:///run/docker.sock -H unix:///run/docker.sock -H unix:///run/docker.sock
    ...
    INFO[2019-07-13T00:02:36.195090937Z] Daemon has completed initialization
    INFO[2019-07-13T00:02:36.215940441Z] API listen on /run/docker.sock
    INFO[2019-07-13T00:02:36.215933172Z] API listen on /run/docker.sock
    INFO[2019-07-13T00:02:36.215990566Z] API listen on /run/docker.sock

After this change:

    dockerd -H unix:///run/docker.sock -H unix:///run/docker.sock -H unix:///run/docker.sock
    ...
    INFO[2019-07-13T00:01:37.533579874Z] Daemon has completed initialization
    INFO[2019-07-13T00:01:37.567045771Z] API listen on /run/docker.sock

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d470252e87)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-01-17 10:07:09 +01:00
..
hack
README.md
config.go Add (hidden) flags to set containerd namespaces 2019-09-25 17:26:26 +02:00
config_common_unix.go dockerd: fix rootless detection (alternative to #39024) 2019-05-13 15:31:31 -07:00
config_unix.go dockerd: fix rootless detection (alternative to #39024) 2019-05-13 15:31:31 -07:00
config_unix_test.go
config_windows.go
daemon.go daemon: don't listen on the same address multiple times 2020-01-17 10:07:09 +01:00
daemon_freebsd.go
daemon_linux.go
daemon_test.go
daemon_unix.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
daemon_unix_test.go
daemon_windows.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
docker.go dockerd: fix rootless detection (alternative to #39024) 2019-05-13 15:31:31 -07:00
docker_unix.go
docker_windows.go
metrics.go
options.go
options_test.go
service_unsupported.go
service_windows.go

README.md

docker.go contains Docker daemon's main function.

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