mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-07 00:41:22 +00:00
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.
11 lines
308 B
Docker
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" ]
|