All Projects → networkboot → Docker Dhcpd

networkboot / Docker Dhcpd

Licence: apache-2.0
Containerized version of ISC DHCP server based on latest Ubuntu LTS

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Docker Dhcpd

docker python-opencv-ffmpeg
Dockerfile containing FFmpeg, OpenCV4 and Python2/3, based on Ubuntu LTS
Stars: ✭ 38 (-61.62%)
Mutual labels:  ubuntu, docker-image
Ipxe Buildweb
iPXE Prebuilt binary web interface
Stars: ✭ 119 (+20.2%)
Mutual labels:  ubuntu, docker-image
Gdal Docker
A Dockerfile compiling the latest GDAL github checkout with a broad range of drivers
Stars: ✭ 111 (+12.12%)
Mutual labels:  ubuntu, docker-image
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (+46.46%)
Mutual labels:  ubuntu, docker-image
docker-debian-releases
Creates docker images of historic Debian-based distribution releases
Stars: ✭ 19 (-80.81%)
Mutual labels:  ubuntu, docker-image
Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (+70.71%)
Mutual labels:  ubuntu, docker-image
Docker Spigot
A docker container with spigot, builds spigot.jar on first start
Stars: ✭ 137 (+38.38%)
Mutual labels:  ubuntu, docker-image
python3-docker-devenv
Docker Start Guide with Python Development Environment
Stars: ✭ 13 (-86.87%)
Mutual labels:  ubuntu, docker-image
Docker Headless Vnc Container
Collection of Docker images with headless VNC environments
Stars: ✭ 1,176 (+1087.88%)
Mutual labels:  ubuntu, docker-image
Imagewolf
Fast Distribution of Docker Images on Clusters
Stars: ✭ 94 (-5.05%)
Mutual labels:  docker-image
Bitnami Docker Testlink
Bitnami Docker Image for TestLink
Stars: ✭ 95 (-4.04%)
Mutual labels:  docker-image
Uvicorn Gunicorn Starlette Docker
Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python 3.7 and 3.6 with performance auto-tuning. Optionally with Alpine Linux.
Stars: ✭ 92 (-7.07%)
Mutual labels:  docker-image
Ecs Nginx Proxy
Reverse proxy for AWS ECS. Lets you address your docker containers by sub domain.
Stars: ✭ 93 (-6.06%)
Mutual labels:  docker-image
Aptutil
Go utilities for Debian APT repositories
Stars: ✭ 95 (-4.04%)
Mutual labels:  ubuntu
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (-8.08%)
Mutual labels:  docker-image
Wg Install
Wireguard road warrior installer for Ubuntu, Debian, CentOS and Fedora
Stars: ✭ 99 (+0%)
Mutual labels:  ubuntu
Tutorial Ubuntu 18.04 Install Nvidia Driver And Cuda And Cudnn And Build Tensorflow For Gpu
Ubuntu 18.04 How to install Nvidia driver + CUDA + CUDNN + build tensorflow for gpu step by step command line
Stars: ✭ 91 (-8.08%)
Mutual labels:  ubuntu
Bitnami Docker Airflow
Bitnami Docker Image for Apache Airflow
Stars: ✭ 89 (-10.1%)
Mutual labels:  docker-image
Docker Ngrok Server
ngrok服务器的docker image,实现内网穿透。也可以下载附件中的ngrok客户端使用
Stars: ✭ 98 (-1.01%)
Mutual labels:  docker-image
Photostructure For Servers
PhotoStructure for Servers
Stars: ✭ 98 (-1.01%)
Mutual labels:  ubuntu

Docker image for ISC DHCP server

This Docker image is suitable for running a DHCP server for your docker host network. It uses ISC DHCP server which is bundled with the latest Ubuntu LTS distribution.

How to build

  1. Install Docker with the instructions on https://www.docker.com.
  2. Run ./build to create the local docker image networkboot/dhcpd.

How to use

The most common use-case is to provide DHCP service to the host network of the machine running Docker. For that you need to create a configuration for the DHCP server, start the container with the --net host docker run option and specify the network interface you want to provide DHCP service on.

  1. Create data folder.
  2. Create data/dhcpd.conf with a subnet clause for the specified network interface. If you need assistance, you can run docker run -it --rm networkboot/dhcpd man dhcpd.conf for a description of the configuration file syntax.
  3. Run docker run -it --rm --init --net host -v "$(pwd)/data":/data networkboot/dhcpd eth0. dhcpd will automatically start and display its logs on the console. You can press Ctrl-C to terminate the server.

A simple run script is also included which makes it quick to iterate on a configuration until you're satisfied.

DHCPv6

To use a DHCPv6-Server you have to pass DHCPD_PROTOCOL=6 as enviroment variable

docker run -it --rm --init -e DHCPD_PROTOCOL=6 --net host -v "$(pwd)/data":/data networkboot/dhcpd eth0

Notes

The entrypoint script in the docker image takes care of running the DHCP server as the same user that owns the data folder. This ensures that the permissions on the files inside the data folder is kept consistent. If the data folder is owned by root, dhcpd is run as the normal dhcpd user.

If you forget to run the docker container with the --net host option a warning will be emitted informing you that you've probably forgotten it.

If a /data volume is not provided with a dhcpd.conf inside it, the container will exit early with an error message.

An additional Dockerfile has been added that allows building an image with the tag :ldap which contains the isc-dhcp-server-ldap package in addition to the normal DHCP server package. Other than that it behaves in exactly the same way as the :latest tag. Utility build and run scripts have also been added to work with this variant.

Acknowledgements

This image uses the following software components:

Copyright & License

This project is copyright 2017 Robin Smidsrød [email protected].

It is licensed under the Apache 2.0 license.

See the file LICENSE for full legal details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].