Configure network and timezone

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2015-12-07 15:54:54 +00:00
parent 050ee55ffa
commit 717a378df9
3 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,8 @@ RUN apk update && apk upgrade && apk add e2fsprogs docker
COPY etc /etc/ COPY etc /etc/
RUN ln -s /bin/busybox /init RUN \
setup-timezone -z UTC && \
ln -s /bin/busybox /init
CMD ["/bin/sh"] CMD ["/bin/sh"]

View File

@ -1,6 +1,6 @@
all: initrd.img all: initrd.img
ETCFILES=etc/motd etc/inittab etc/hostname- etc/resolv.conf- etc/hosts- ETCFILES=etc/motd etc/inittab etc/network/interfaces etc/hostname- etc/resolv.conf- etc/hosts-
initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES) initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES)
rm -f initrd.img rm -f initrd.img

View File

@ -0,0 +1,6 @@
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname docker