A simple dnsmasq server based on the alpine image.
932
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: 1.2.3.4
volume:
- /etc/dnsmasq.conf:/etc/dnsmasq.conf
networks:
local:
external: true
Content type
Image
Digest
Size
2.9 MB
Last updated
over 9 years ago
docker pull awmath/dnsmasq