Public | Automated Build

Last pushed: 6 months ago
Short Description
A simple dnsmasq server based on the alpine image.
Full Description

docker-dnsmasq

Usage

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
Docker Pull Command
Owner
awmath
Source Repository

Comments (0)