Skip to content

Conversation

@sjmiller609
Copy link
Collaborator

@sjmiller609 sjmiller609 commented Nov 6, 2025

See the README in lib/images/README.md for a summary

@mesa-dot-dev
Copy link

mesa-dot-dev bot commented Nov 6, 2025

Mesa Description

This PR introduces the capability to export Docker images to a root filesystem (rootfs), enabling the creation of virtual machine filesystems directly from container images.

The core of this change is a new ExportImage method in the ImageManager. This method orchestrates the process of pulling a specified Docker image, creating a temporary container from it, and then exporting that container's filesystem as a tar archive. The archive is then extracted to a designated directory, making it ready for use as a VM's rootfs.

This new functionality abstracts the image preparation process, allowing the system to leverage any OCI-compliant image from a container registry as a base for a virtual machine, rather than relying on pre-packaged rootfs tarballs.

Description generated by Mesa. Update settings

@sjmiller609 sjmiller609 requested a review from rgarcia November 7, 2025 22:38
@sjmiller609 sjmiller609 marked this pull request as ready for review November 7, 2025 22:38
@mesa-dot-dev
Copy link

mesa-dot-dev bot commented Nov 7, 2025

Mesa Description

This change introduces the capability to export Docker/OCI container images to a root filesystem (rootfs). This allows the system to leverage the vast ecosystem of existing container images to create the base filesystem for new virtual machine instances.

The new workflow integrates with the Docker daemon to pull a specified image and export its contents. This simplifies the process of creating and managing VM templates by replacing manual configuration with standardized, pre-built container images.

Description generated by Mesa. Update settings

@sjmiller609 sjmiller609 changed the title Export images to rootfs with docker Image manager Nov 7, 2025
Copy link
Contributor

@rgarcia rgarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool stuff!

@sjmiller609 sjmiller609 requested a review from rgarcia November 10, 2025 21:55
@rgarcia rgarcia mentioned this pull request Nov 11, 2025
@sjmiller609 sjmiller609 merged commit 65a64a5 into main Nov 11, 2025
1 check passed
@sjmiller609 sjmiller609 deleted the image-manager branch November 11, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants