mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
On systems using systemd to autostart Docker on boot, containers might encounter a problem where they will not have any DNS access until the container is restarted manually. This PR fixes this issue by requiring that the Docker engine service starts after nss-lookup.target. This target is reached when DNS resolution is available. See https://wiki.archlinux.org/title/Systemd#Running_services_after_the_network_is_up (paragraph "If a service needs to perform DNS queries...") Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>