Skip to main content

create_bundle

Function create_bundle 

Source
pub async fn create_bundle(
    container_id: &ContainerId,
    spec: &ServiceSpec,
    rootfs_path: Option<PathBuf>,
) -> Result<PathBuf>
Expand description

Create a bundle for a container

Convenience function that creates a bundle in the default location.

§Errors

Returns an error if bundle creation fails.

§Platform

Unix-only — wraps BundleBuilder::build, which uses tokio::fs::symlink (not available on Windows). Windows callers should use BundleBuilder::build_spec_only directly and pipe the result into a WSL2 delegate.