Docker DNSMasq Service
This service detect all running docker containers and setup dnsmasq service for resolve container's name .
Setup :
- Install dnsmasq service
- Edit /etc/dnsmasq.conf and add this line end of file :
addn-hosts=/etc/hosts.docker
- Copy docker-dnsmasq to /usr/local/sbin
- Copy docker-dnsmasq.service to /lib/systemd/system/
- execute this commands :
systemctl enable docker-dsmasq.service
systemctl start dnsmasq
systemctl start docker-dnsmasq
Note :
/etc/resole.conf :
nameserver 127.0.0.1