Generic container for launching a firecracker microVM inside a Docker container
- It attaches to the VM as many NICs as the docker container has
- Outputs serial console to stdio, thus visible using docker logs
git clone https://github.com/s8sg/docker-firecracker
cd docker-firecracker
make
./build-fs ./my-go-app my_root_fs
docker run \
-td \
--privileged \
-v /path_to/my_root_fs:/rootfs/image \
-p <port>:<port> \
s8sg/docker-firecracker