From 50205c59e00886d3635c36935dd5bcd2571c579b Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 20 Sep 2024 14:00:21 +0200 Subject: [PATCH] Make DHCP configuration persistent --- router/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/Dockerfile b/router/Dockerfile index 7455551..0291ee0 100644 --- a/router/Dockerfile +++ b/router/Dockerfile @@ -1,5 +1,7 @@ # As CentOS reached EOL we cannot build the image anymore # So we reuse the work of Chewie for our own images -FROM chewiebeardy/gns3-host:2023 +FROM chewiebeardy/gns3-router:2023 + +RUN mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.orig && ln -s /etc/sysconfig/dhcpd.conf /etc/dhcp/dhcpd.conf CMD ["/usr/sbin/init"] \ No newline at end of file