CodePudding user response:
Assume that your host machine is Linux,
Make sure the IP impassability, such as ping hosting IP 127.0.0.1, as well as 47.95.164.112 (IP) of CSDN
If no problem, then put the host in the/etc/resolv. Conf mapped to container, such as try,
Also, with the docker container inspect & lt; The container id> Check the type of network,
-- they say not to, for reference only.