dhcpcd system container

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy
2017-03-15 12:18:10 +00:00
parent 08e62e0ebd
commit a33b9ff4b1
15 changed files with 233 additions and 10 deletions

View File

@@ -4,7 +4,6 @@ RUN \
apk --no-cache update && \
apk --no-cache upgrade -a && \
apk --no-cache add \
dhcpcd \
&& rm -rf /var/cache/apk/*
COPY . ./

View File

@@ -102,5 +102,7 @@ ip addr add 127.0.0.1/8 dev lo brd + scope host
ip route add 127.0.0.0/8 dev lo scope host
ip link set lo up
# will be containerised
/sbin/dhcpcd
# for containerising dhcpcd and other containers that need writable etc
mkdir /tmp/etc
mv /etc/resolv.conf /tmp/etc/resolv.conf
ln -snf /tmp/etc/resolv.conf /etc/resolv.conf