disable dnsmasq in NetworkManager (this might slow your network).
1.Open the /etc/NetworkManager/NetworkManager.conf file for editing.
$ sudo gedit /etc/NetworkManager/NetworkManager.conf
2.注销 the dns=dnsmasq line:
#dns=dnsmasq
3.Save and close the file.
4.Restart both the NetworkManager and Docker.
$ sudo restart network-manager
$ sudo restart docker