Clean up dhcpcd container

It is not necessary to bring up `eth0`, the program does it fine.

This means we can remove shell script, clean up build.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-04-06 15:32:22 +01:00
parent 3223897232
commit 0a030dc219
13 changed files with 14 additions and 30 deletions

View File

@@ -7,8 +7,6 @@ RUN \
openrc \
&& true
ADD dhcpcd.conf /dhcpcd.conf
ADD start_dhcpcd.sh /usr/local/bin/start_dhcpcd.sh
ADD 10-mtu /usr/lib/dhcpcd/dhcpcd-hooks/10-mtu
COPY . .
CMD ["/usr/local/bin/start_dhcpcd.sh"]
CMD ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf"]