mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
Setting the default host was implicitly handled in `normalizeHosts`; if no hosts were provided, an empty entry was added to the list of hosts, then passed through to `opts.ParseHost`, which handled an empty value to set the default location (depending on TLS being enabled or XDG paths to be used (when running with RootlessKit). This patch makes the logic less magical: - If no hosts are configured by the user (through CLI-flags or daemon.json), then we append the default location. - The handling for TLS listeners is open-coded for now; we need to decide if we want to preserve this behavior (magically using TCP instead of a unix-socket or named pipe if TLS is enabled). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>