Files
linuxkit/Dockerfile
Mindy Preston cbd5c61592 Run qemu-system-x86_64 with more memory.
With the default 128M of memory, the ramfs (which currently has a decompressed
size of ~82M) can't be completely written with the kernel and the compressed ramfs
also in memory, resulting in missing chunks of filesystem (notably /etc and /sbin for
me) on the emulated machine.  This makes for a dramatically broken moby.  Asking for 256M at least
gets us to some nice whale ASCII art and a console we can interact with.
2016-01-09 01:08:16 +00:00

11 lines
308 B
Docker

FROM alpine:3.3
COPY alpine/initrd.img .
COPY alpine/kernel/vmlinuz64 .
RUN apk update && apk add qemu-system-x86_64
RUN gzip -9 initrd.img
ENTRYPOINT [ "qemu-system-x86_64", "-kernel", "vmlinuz64", "-initrd", "initrd.img.gz", "-m", "256", "-append", "earlyprintk=serial console=ttyS0", "-vnc", "none" ]