jmtd/debian-docker

Do not install DHCP client

Opened this issue · 2 comments

As the Docker daemon assigns IP addresses to a container, no DHCP client needs to be installed in a base image.

Currently, the package isc-dhcp-client is installed, which, as written above, is unnecessary and additionally makes the Docker image bigger.

# dpkg -l isc*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                Version                Architecture           Description
+++-===================================-======================-======================-============================================================================
ii  isc-dhcp-client                     4.3.4-1                amd64                  DHCP client for automatically obtaining an IP address
un  isc-dhcp-client-ddns                <none>                 <none>                 (no description available)
ii  isc-dhcp-common                     4.3.4-1                amd64                  common files used by all of the isc-dhcp packages
jmtd commented

That's a good point, thanks.

debootstrap --exclude=isc-dhcp-client