Port freeze/migrate off host Docker (last docker-bootstrap in the firecracker path) #397
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The last host-Docker dependency in the Firecracker launch path (PRD 0069 / #348). Stage 2 (#395) removed Docker from the infra-image bootstrap by pulling a prebuilt rootfs artifact; Stage 3 already builds agent images in-VM with buildah. What remains is freeze/migrate.
Where Docker still runs on the launch host
firecracker/freezer.py:73runsdocker buildto snapshot a running agent VM into an image._build_agent_base(firecracker/launch.py:222) callsutil.build_base_rootfs_dir(committed), which isdocker create+docker export | tar(firecracker/util.py:188-206), plusdocker_image_id(util.py:153).Goal
Port both off host Docker so the Firecracker backend needs firecracker + KVM only — no Docker daemon, no
dockergroup — completing #348. Likely shape: commit the agent VM's rootfs directly (it's already an ext4 we control) rather than round-tripping through a Docker image, and export/prepare it withoutdocker export.Note:
docker_mod.build_image/build_base_rootfs_diralso back the opt-inBOT_BOTTLE_INFRA_BUILD=localdev escape hatch and the off-hostpublish_infrastep — those are intentional and out of scope; this issue is only the freeze/migrate launch-path use.