Diagnostic step 1
Configure Docker daemon to use systemd-resolved's upstream servers file instead of the stub: point Docker's dns to the IPs in /run/systemd/resolve/resolv.conf or set 'dns' in daemon.json to the internal resolver IP reachable from containers.