A simple dnsmasq server based on the alpine image.
In order to use the dhcp capabilities of dnsmasq you need to create a local macvlan network https://docs.docker.com/engine/userguide/networking/get-started-macvlan/.
After that you can use a docker-compose.yml file as follows:
version: '2' services: dns_dhcp: image: awmath/dnsmasq cap_add: - NET_ADMIN restart: always hostname: dnsmasq container_name: dnsmasq networks: local: ipv4_address: 126.96.36.199 volume: - /etc/dnsmasq.conf:/etc/dnsmasq.conf networks: local: external: true
Docker Pull Command