21 lines
452 B
Markdown
21 lines
452 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 (initial ramdisk)
|
|
slim build qcow2 slim-alpine --init=/init
|
|
|
|
# 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
|
|
```
|