Same happens when pinging container 1 from container 2. I can also use the same http address and browse the existing code. The lookup for the host used in the ping failed, probably because there’s no name server configured on the router. com命令的时候,提示Nameorservicenotknown ~]# ping com' but not with 'host' that is a function of your 'Connection-specific DNS suffix' as configured in your TCP/IP IPV4 config or your DHCP scope. conf is: # This file is managed by man:systemd-resolved(8). To use the ping program on Mac OS X and Linux, follow these steps: Open a terminal window. Name or service not known ping linux conf file.