Build a chrooted image of ISC DHCP based on Fedora 36
160
Build a chrooted image of ISC DHCP. Even if it's fully functional, this container will be used to achieve a larger project, I aim to create an image with DHCP server linked a web GUI interface named Glass, to provide Log output rsyslog will be implemented too
Prerequisites
You can use Podman or docker to build the image, but an action workflow is already designed to fully complete the job for amd64 and arm64, you can find it in my Github repository
https://github.com/vpolaris/container_isc-dhcp_f36
You can clone the repository or download files
git clone https://github.com/vpolaris/contenair_isc-dhcp_f36.git
cd contenair_isc-dhcp_f36
sudo podman build --squash-all --cap-add MKNOD -t f36:dhcpd -f ./Dockerfile .
There is a basic config file inside the image which can link to private netwok 192.168. and 172.16. and also the default podman network. You can overide it by mounting a volume
To schedule the default service use the following command
podman run -tid --privileged --net host \
--cap-add SYSLOG \
--cap-add NET_RAW \
--cap-add SYS_CHROOT \
--name f36:dhcpd \
--volume /etc/dhcp/dhcpd.conf:/isc-dhcpd/etc/dhcpd.conf:rw \
-t f36:dhcpd
Content type
Image
Digest
sha256:39527a889…
Size
25.3 MB
Last updated
about 4 years ago
docker pull vpolaris/isc-dhcpd:4.4.3-2.fc36