Skip to content

Instantly share code, notes, and snippets.

@kazkansouh
Last active October 5, 2018 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazkansouh/a0a263809d97acf89aa41a6fe691f451 to your computer and use it in GitHub Desktop.
Save kazkansouh/a0a263809d97acf89aa41a6fe691f451 to your computer and use it in GitHub Desktop.
GNS3 ipterm image with support for dhclient instead of udhcpc
FROM gns3/ipterm:latest
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get -q update && \
apt-get -qq -y install isc-dhcp-client && \
rm -rf /var/lib/apt/lists/*
# Need to make dhclient available during init script execution
# RUN mkdir -p /tmp/gns3/bin && ln -s /sbin/dhclient /tmp/gns3/bin/dhclient
# ^^ does not work as directory /tmp/gns/bin should not exist.
#
# Solution is to use the pre-up script in the interfaces file to
# create the symlink.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment