21 lines
456 B
Markdown
21 lines
456 B
Markdown
# slim
|
|
|
|
Turning containers into bootable VMs
|
|
|
|
## Example - Minimal Alpine Busybox
|
|
|
|
```sh
|
|
# Build the container
|
|
podman build ./example/alpine -t slim-alpine
|
|
|
|
# Make the container bootable by extracing initrd and vmlinuz (initial ramdisk and kernel)
|
|
slim build slim-alpine
|
|
|
|
# Boot the image using QEMU, `./example/alpine/init` will drop you into an interactive shell.
|
|
slim run slim-alpine
|
|
|
|
# Cleanup
|
|
slim image rm slim-alpine
|
|
podman image rm slim-alpine
|
|
```
|