mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
Configure network and timezone
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
050ee55ffa
commit
717a378df9
@ -8,6 +8,8 @@ RUN apk update && apk upgrade && apk add e2fsprogs docker
|
||||
|
||||
COPY etc /etc/
|
||||
|
||||
RUN ln -s /bin/busybox /init
|
||||
RUN \
|
||||
setup-timezone -z UTC && \
|
||||
ln -s /bin/busybox /init
|
||||
|
||||
CMD ["/bin/sh"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
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)
|
||||
rm -f initrd.img
|
||||
|
6
alpine/etc/network/interfaces
Normal file
6
alpine/etc/network/interfaces
Normal file
@ -0,0 +1,6 @@
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
||||
hostname docker
|
Loading…
Reference in New Issue
Block a user