Sign inSign up

awmath/dnsmasq

By awmath

Updated over 9 years ago

A simple dnsmasq server based on the alpine image.

Image
0

932

awmath/dnsmasq repository overview

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

Tag summary

Content type

Image

Digest

Size

2.9 MB

Last updated

over 9 years ago

docker pull awmath/dnsmasq