Unable to ping domain name inside docker container?

  docker, question

1. dns server is set up on the host computer, and domain name can be ping on the host computer

2. Entering the container but unable to ping the domain name

ping: xxx.sss.com: Name or service not known

3. Is there any setting that needs to be made?

When docker run is used-DNS = IP _ address, add DNS server to container’s/etc/resolve.conf.